code: def convert_from_sliced_object(data):
      
      if data.base is not None and isinstance(data, np.ndarray) and isinstance(data.base, np.ndarray):
          if not data.flags.c_contiguous:
              warnings.warn("Usage of np.ndarray subset (sliced data) is not recommended "
                            "due to it will double the peak memory cost in LightGBM.")
              return np.copy(data)
      return data
docs: Fix the memory of multi-dimensional sliced object.