class_docstr: Return a callable object that calls the given method on its operand.
  After f = methodcaller('name'), the call f(r) returns r.name().
  After g = methodcaller('name', 'date', foo=1), the call g(r) returns
  r.name('date', foo=1).
class_docstr_tok: ["Return","a","callable","object","that","calls","the","given","method","on","its","operand",".","After","f","=","methodcaller","(","'name","'",")",",","the","call","f","(","r",")","returns","r.name","(",")",".","After","g","=","methodcaller","(","'name","'",",","'date","'",",","foo=1",")",",","the","call","g","(","r",")","returns","r.name","(","'date","'",",","foo=1",")","."]
code: def __reduce__(self):
      if not self._kwargs:
          return self.__class__, (self._name,) + self._args
      else:
          from functools import partial
  
          return (
              partial(self.__class__, self._name, **self._kwargs),
              self._args,
          )
  
imports: from builtins import abs
label_desc: Use image node_id 4 for calling the methodcaller obj's underlying member method code with example usage: obj.__reduce__() and returns: self,  unknown, partial,  self