class_docstr: The mini decorator factory
class_docstr_tok: ["The","mini","decorator","factory"]
docstr: Process args passed to the decorator.
  
  args not consumed by the decorator will be passed to the target factory
  (Context/Socket constructor).
docstr_tok: ["Process","args","passed","to","the","decorator",".","args","not","consumed","by","the","decorator","will","be","passed","to","the","target","factory","(","Context\/Socket","constructor",")","."]
code: def process_decorator_args(self, *args, **kwargs):
      """Process args passed to the decorator.
  
      args not consumed by the decorator will be passed to the target factory
      (Context/Socket constructor).
      """
      kw_name = None
  
      if isinstance(kwargs.get("name"), str):
          kw_name = kwargs.pop("name")
      elif len(args) >= 1 and isinstance(args[0], str):
          kw_name = args[0]
          args = args[1:]
  
      return kw_name, args, kwargs
  
file_path: catboost/contrib/python/pyzmq/py3/zmq/decorators.py
imports: from functools import wraps
  import zmq
label_desc: Use image node_id 4 for calling the _Decorator obj's underlying member method code with example usage: obj.process_decorator_args() and returns: kw_name,  args,  kwargs