code: def from_pandas(
      data, chunk_size=None, gpu=None, sparse=False, store_data=False
  ):
      op = IndexDataSource(
          data=data,
          gpu=gpu,
          sparse=sparse,
          dtype=data.dtype,
          store_data=store_data,
      )
      return op(shape=data.shape, chunk_size=chunk_size)
  
imports: import itertools
  import numpy
  import pandas
  from ...None import opcodes
  from ...config import options
  from ...core import OutputType
  from ...serialization.serializables import IndexField, DataTypeField, BoolField
  from ...tensor.utils import get_chunk_slices
  from ..operands import DataFrameOperand, DataFrameOperandMixin
  from ..utils import parse_index, decide_series_chunk_size, is_cudf
label_desc: Use image node_id 1 for calling a global function with example usage: from_pandas(data, chunk_size, gpu, sparse, store_data) and returns: op