code: def _prepare_src_array(source_array, dtype):
      
      if not isinstance(source_array, NDArray) and not isinstance(source_array, np.ndarray):
          try:
              source_array = np.array(source_array, dtype=dtype)
          except:
              raise TypeError('values must be array like object')
      return source_array
docs: Prepare `source_array` so that it can be used to construct NDArray.
      `source_array` is converted to a `np.ndarray` if it's neither an `NDArray` \
      nor an `np.ndarray`.