code: def testLinspaceBroadcasts(self, start_shape, stop_shape, dtype, num):
      if LooseVersion(np.version.version) < LooseVersion("1.16.0"):
          self.skipTest(
              "numpy doesn't support axes before version 1.16.0"
          )
  
          ndims = max(len(start_shape), len(stop_shape))
          for axis in range(-ndims, ndims):
              start = np.ones(start_shape, dtype)
              stop = 10 * np.ones(stop_shape, dtype)
  
              np_ans = np.linspace(start, stop, num, axis=axis)
              tf_ans = self.evaluate(
                  math_ops.linspace_nd(start, stop, num, axis=axis)
              )
  
              self.assertAllClose(np_ans, tf_ans)
  
file_path: tensorflow/tensorflow/python/ops/math_ops_linspace_test.py
imports: from distutils.version import LooseVersion
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 1 for calling the LinspaceTest obj's underlying member method code with example usage: obj.testLinspaceBroadcasts(start_shape, stop_shape, dtype, num) without return types