code: def _buildParams(self, data, dtype):
      data = data.astype(dtype.as_numpy_dtype)
      # For complex types, adds an index-dependent imaginary component so we can
      # tell we got the right value.
      if dtype.is_complex:
          return data + 10j * data
      return data
  
imports: import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import flags
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the GatherTest obj's underlying member method code with example usage: obj._buildParams(data, dtype) and returns: data, unknown