code: def is_differentiable(op):
      try:
          return (
              ops._gradient_registry.lookup(op.op_def.name) is not None
          )  # pylint: disable=protected-access
      except LookupError:
          return False
  
imports: from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.util import object_identity
label_desc: Use image node_id 1 for calling a global function with example usage: is_differentiable(op) and returns: unknown, False