code: def _make_operator(name, func):
      """
      Create operator method.
      """
  
      def method(self, other):
          if not self._is_comparable_to(other):
              return NotImplemented
  
          result = func(self.value, other.value)
          if result is NotImplemented:
              return NotImplemented
  
          return result
  
      method.__name__ = f"__{name}__"
      method.__doc__ = (
          f"Return a {_operation_names[name]} b.  Computed by attrs."
      )
  
      return method
  
file_path: catboost/contrib/python/attrs/py3/attr/_cmp.py
imports: import functools
  import types
  from ._make import _make_ne
label_desc: Use image node_id 3 for calling a global function with example usage: _make_operator(name, func) and returns: method, result, NotImplemented, NotImplemented