class_docstr: A descriptor for request methods.
  
  .. versionadded:: 1.3
  
  Parameters
  ----------
  name : str
      The name of the method for which the request function should be
      created, e.g. ``"fit"`` would create a ``set_fit_request`` function.
  
  keys : list of str
      A list of strings which are accepted parameters by the created
      function, e.g. ``["sample_weight"]`` if the corresponding method
      accepts it as a metadata.
  
  validate_keys : bool, default=True
      Whether to check if the requested parameters fit the actual parameters
      of the method.
  
  Notes
  -----
  This class is a descriptor [1]_ and uses PEP-362 to set the signature of
  the returned function [2]_.
  
  References
  ----------
  .. [1] https://docs.python.org/3/howto/descriptor.html
  
  .. [2] https://www.python.org/dev/peps/pep-0362/
class_docstr_tok: ["A","descriptor","for","request","methods",".","..","versionadded",":",":","1.3","Parameters","--","--","--","--","--","name",":","str","The","name","of","the","method","for","which","the","request","function","should","be","created",",","e.g",".","``","``","fit","''","``","would","create","a","``","set_fit_request","``","function",".","keys",":","list","of","str","A","list","of","strings","which","are","accepted","parameters","by","the","created","function",",","e.g",".","``","[","``","sample_weight","''","]","``","if","the","corresponding","method","accepts","it","as","a","metadata",".","validate_keys",":","bool",",","default=True","Whether","to","check","if","the","requested","parameters","fit","the","actual","parameters","of","the","method",".","Notes","--","--","-","This","class","is","a","descriptor","[","1","]","_","and","uses","PEP-362","to","set","the","signature","of","the","returned","function","[","2","]","_.","References","--","--","--","--","--","..","[","1","]","https",":","\/\/docs.python.org\/3\/howto\/descriptor.html","..","[","2","]","https",":","\/\/www.python.org\/dev\/peps\/pep-0362\/"]
code: def __init__(self, name, keys, validate_keys=True):
      self.name = name
      self.keys = keys
      self.validate_keys = validate_keys
  
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 1 to create a new RequestMethod object  with example: obj = RequestMethod(name, keys, validate_keys)