code: def assert_not_ref_type(x, arg_name):
      if is_ref(x):
          raise TypeError(
              f"Argument {arg_name} cannot be reference type. Found: {type(x)}."
          )
  
imports: import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_conversion
  from tensorflow.python.module import module
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import check_ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import linalg_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.util import nest
label_desc: Use image node_id 6 for calling a global function with example usage: assert_not_ref_type(x, arg_name) without return types