code: def _AsType(v, vtype):
      return v.astype(vtype) if isinstance(v, np.ndarray) else vtype(v)
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/v1_compat_tests/scatter_nd_ops_test.py
imports: import functools
  import numpy
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import state_ops
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling a global function with example usage: _AsType(v, vtype) and returns: unknown