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.
docstr: Check whether metadata is passed which is marked as WARN.
  
  If any metadata is passed which is marked as WARN, a warning is raised.
  
  Parameters
  ----------
  method : str
      The name of the method for which the warnings should be checked.
  
  params : dict
      The metadata passed to a method.
docstr_tok: ["Check","whether","metadata","is","passed","which","is","marked","as","WARN",".","If","any","metadata","is","passed","which","is","marked","as","WARN",",","a","warning","is","raised",".","Parameters","--","--","--","--","--","method",":","str","The","name","of","the","method","for","which","the","warnings","should","be","checked",".","params",":","dict","The","metadata","passed","to","a","method","."]
code: def _check_warnings(self, *, method, params):
      """Check whether metadata is passed which is marked as WARN.
  
      If any metadata is passed which is marked as WARN, a warning is raised.
  
      Parameters
      ----------
      method : str
          The name of the method for which the warnings should be checked.
  
      params : dict
          The metadata passed to a method.
      """
      getattr(self, method)._check_warnings(params=params)
  
imports: import inspect
  from collections import namedtuple
  from copy import deepcopy
  from typing import 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 4 for calling the MetadataRequest obj's underlying member method code with example usage: obj._check_warnings() without return types