code: def is_cython(obj):
      """Check if an object is a Cython function or method"""
  
      # TODO(suo): We could split these into two functions, one for Cython
      # functions and another for Cython methods.
      # TODO(suo): There doesn't appear to be a Cython function 'type' we can
      # check against via isinstance. Please correct me if I'm wrong.
      def check_cython(x):
          return type(x).__name__ == "cython_function_or_method"
  
      # Check if function or method, respectively
      return check_cython(obj) or (
          hasattr(obj, "__func__") and check_cython(obj.__func__)
      )
  
imports: import inspect
label_desc: Use image node_id 1 for calling a global function with example usage: is_cython(obj) and returns: unknown, unknown