class_docstr: A prescription of how metadata is to be passed to a single method.
  
  Refer to :class:`MetadataRequest` for how this class is used.
  
  .. versionadded:: 1.3
  
  Parameters
  ----------
  owner : str
      A display name for the object owning these requests.
  
  method : str
      The name of the method to which these requests belong.
  
  requests : dict of {str: bool, None or str}, default=None
      The initial requests for this method.
class_docstr_tok: ["A","prescription","of","how","metadata","is","to","be","passed","to","a","single","method",".","Refer","to",":","class",":","`","MetadataRequest","`","for","how","this","class","is","used",".","..","versionadded",":",":","1.3","Parameters","--","--","--","--","--","owner",":","str","A","display","name","for","the","object","owning","these","requests",".","method",":","str","The","name","of","the","method","to","which","these","requests","belong",".","requests",":","dict","of","{","str",":","bool",",","None","or","str","}",",","default=None","The","initial","requests","for","this","method","."]
docstr: Check whether the given parameters are consumed by this method.
  
  Parameters
  ----------
  params : iterable of str
      An iterable of parameters to check.
  
  Returns
  -------
  consumed : set of str
      A set of parameters which are consumed by this method.
docstr_tok: ["Check","whether","the","given","parameters","are","consumed","by","this","method",".","Parameters","--","--","--","--","--","params",":","iterable","of","str","An","iterable","of","parameters","to","check",".","Returns","--","--","--","-","consumed",":","set","of","str","A","set","of","parameters","which","are","consumed","by","this","method","."]
code: def _consumes(self, params):
      """Check whether the given parameters are consumed by this method.
  
      Parameters
      ----------
      params : iterable of str
          An iterable of parameters to check.
  
      Returns
      -------
      consumed : set of str
          A set of parameters which are consumed by this method.
      """
      params = set(params)
      res = set()
      for prop, alias in self._requests.items():
          if alias is True and prop in params:
              res.add(prop)
          elif isinstance(alias, str) and alias in params:
              res.add(alias)
      return res
  
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 7 for calling the MethodMetadataRequest obj's underlying member method code with example usage: obj._consumes(params) and returns: res