This method returns the subset of given params that are consumed by the
given method. It can be used to check if parameters are used as metadata in
the specified method of the consumer that owns this MetadataRequest
instance.
Parameters:
method : str
The name of the method for which to determine consumed parameters.
params : iterable of str
An iterable of parameter names to test for consumption.
Returns:
consumed_params : set of str
A subset of parameters from params which are consumed by the given method.