code: def get_function_def_and_type(foo, inputs):
      """Traces `foo` generate the FunctionDef and FunctionType."""
      concrete = polymorphic_function.function(
          foo
      ).get_concrete_function(*inputs)
      atomic = concrete._inference_function
      return atomic.definition, atomic.function_type
  
file_path: tensorflow-upstream/tensorflow/python/eager/polymorphic_function/atomic_function_test.py
imports: from tensorflow.python.eager.polymorphic_function import atomic_function
  from tensorflow.python.eager.polymorphic_function import polymorphic_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling a global function with example usage: get_function_def_and_type(foo, inputs) and returns: atomic,  atomic