code: def ConstantOf(x):
      x = np.asarray(x)
      # Convert to int64 if it's not a string or unicode
      if x.dtype.char not in "SU":
          x = np.asarray(x, dtype=np.int64)
      return constant_op.constant(x)
  
imports: import numpy
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling a global function with example usage: ConstantOf(x) and returns: constant_op