class_docstr: Contains the metadata request info of a consumer.
  
  Instances of `MethodMetadataRequest` are used in this class for each
  available method under `metadatarequest.{method}`.
  
  Consumer-only classes such as simple estimators return a serialized
  version of this class as the output of `get_metadata_routing()`.
  
  .. versionadded:: 1.3
  
  Parameters
  ----------
  owner : str
      The name of the object to which these requests belong.
class_docstr_tok: ["Contains","the","metadata","request","info","of","a","consumer",".","Instances","of","`","MethodMetadataRequest","`","are","used","in","this","class","for","each","available","method","under","`","metadatarequest.","{","method","}","`",".","Consumer-only","classes","such","as","simple","estimators","return","a","serialized","version","of","this","class","as","the","output","of","`","get_metadata_routing","(",")","`",".","..","versionadded",":",":","1.3","Parameters","--","--","--","--","--","owner",":","str","The","name","of","the","object","to","which","these","requests","belong","."]
docstr: Check whether the given parameters are consumed by the given method.
  
  .. versionadded:: 1.4
  
  Parameters
  ----------
  method : str
      The name of the method to check.
  
  params : iterable of str
      An iterable of parameters to check.
  
  Returns
  -------
  consumed : set of str
      A set of parameters which are consumed by the given method.
docstr_tok: ["Check","whether","the","given","parameters","are","consumed","by","the","given","method",".","..","versionadded",":",":","1.4","Parameters","--","--","--","--","--","method",":","str","The","name","of","the","method","to","check",".","params",":","iterable","of","str","An","iterable","of","parameters","to","check",".","Returns","--","--","--","-","consumed",":","set","of","str","A","set","of","parameters","which","are","consumed","by","the","given","method","."]
code: def consumes(self, method, params):
      """Check whether the given parameters are consumed by the given method.
  
      .. versionadded:: 1.4
  
      Parameters
      ----------
      method : str
          The name of the method to check.
  
      params : iterable of str
          An iterable of parameters to check.
  
      Returns
      -------
      consumed : set of str
          A set of parameters which are consumed by the given method.
      """
      return getattr(self, method)._consumes(params=params)
  
imports: import inspect
  from collections import namedtuple
  from copy import deepcopy
  from typing import TYPE_CHECKING, Optional, Union
  from warnings import warn
  from ..None import get_config
  from ..exceptions import UnsetMetadataPassedError
  from ._bunch import Bunch
label_desc: Use image node_id 2 for calling the MetadataRequest obj's underlying member method code with example usage: obj.consumes(method, params) and returns: getattr