code: def _linspace(
      start, stop, num, name=None, axis=0
  ):  # pylint: disable=unused-argument
      """Match TF behavior with np.linspace."""
      start = ops.convert_to_tensor(start)
      # Match TF weirdness arising from truediv(int32, int32) = float64
      if np.issubdtype(start.dtype, np.integer):
          start = start.astype(np.float64)
      stop = ops.convert_to_tensor(stop, dtype=start.dtype)
      if not np.issubdtype(np.array(num).dtype, np.integer):
          raise TypeError(
              "`num` must be an integer but got {}".format(num.dtype)
          )
      return np.linspace(start, stop, int(num), axis=axis).astype(
          start.dtype
      )
  
imports: import functools
  import numpy
  import numpy
  from tensorflow_probability.python.internal.backend.numpy import _utils
  from tensorflow_probability.python.internal.backend.numpy import ops
  from tensorflow_probability.python.internal.backend.numpy.linalg_impl import einsum
  from tensorflow_probability.python.internal.backend.numpy.linalg_impl import norm
  from tensorflow_probability.python.internal.backend.numpy.linalg_impl import tensordot
label_desc: Use image node_id 7 for calling a global function with example usage: _linspace(start, stop, num, name, axis) and returns: np