code: def linspace(
      self: ivy.Array,
      stop: Union[ivy.Array, ivy.NativeArray, float],
      /,
      num: int,
      *,
      axis: Optional[int] = None,
      endpoint: bool = True,
      dtype: Optional[Union[ivy.Dtype, ivy.NativeDtype]] = None,
      device: Optional[Union[ivy.Device, ivy.NativeDevice]] = None,
      out: Optional[ivy.Container] = None,
  ) -> ivy.Array:
      return ivy.linspace(
          self,
          stop,
          num=num,
          axis=axis,
          endpoint=endpoint,
          dtype=dtype,
          device=device,
          out=out,
      )
  
file_path: ivy/ivy/data_classes/array/creation.py
imports: import abc
  from numbers import Number
  from typing import Optional, Union, List
  import ivy
label_desc: Use image node_id 13 for calling the _ArrayWithCreation obj's underlying member method code with example usage: obj.linspace(num) and returns: ivy