code: def _buildData(self, shape, dtype):
      data = np.random.randn(*shape).astype(dtype.as_numpy_dtype)
      # For complex types, add an index-dependent imaginary component so we can
      # tell we got the right value.
      if dtype.is_complex:
          return data + 10j * data
      return data
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/math_ops/aggregate_ops_test.py
imports: import numpy
  from tensorflow.core.framework import tensor_pb2
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import string_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the AddNTest obj's underlying member method code with example usage: obj._buildData(shape, dtype) and returns: data, unknown