class_docstr: Represents data from pandas Series
class_docstr_tok: ["Represents","data","from","pandas","Series"]
code: def tile(cls, op: "SeriesDataSource"):
      series = op.outputs[0]
      raw_series = op.data
  
      memory_usage = raw_series.memory_usage(index=False, deep=True)
      chunk_size = (
          series.extra_params.raw_chunk_size or options.chunk_size
      )
      chunk_size = decide_series_chunk_size(
          series.shape, chunk_size, memory_usage
      )
      chunk_size_idxes = (range(len(size)) for size in chunk_size)
  
      out_chunks = []
      for chunk_shape, chunk_idx in zip(
          itertools.product(*chunk_size),
          itertools.product(*chunk_size_idxes),
      ):
          chunk_op = op.copy().reset_key()
          slc = get_chunk_slices(chunk_size, chunk_idx)
          if is_cudf(raw_series):  # pragma: no cover
              chunk_op.data = raw_series.iloc[slc[0]]
          else:
              chunk_op.data = raw_series.iloc[slc]
          chunk_op.dtype = chunk_op.data.dtype
          out_chunk = chunk_op.new_chunk(
              None,
              shape=chunk_shape,
              dtype=op.dtype,
              index=chunk_idx,
              index_value=parse_index(chunk_op.data.index),
              name=series.name,
          )
          out_chunks.append(out_chunk)
  
      new_op = op.copy()
      return new_op.new_seriess(
          None,
          series.shape,
          dtype=op.dtype,
          index_value=series.index_value,
          name=series.name,
          chunks=out_chunks,
          nsplits=chunk_size,
      )
  
file_path: mars/mars/dataframe/datasource/series.py
imports: import itertools
  from ...None import opcodes
  from ...serialization.serializables import SeriesField, DataTypeField
  from ...config import options
  from ...core import OutputType
  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 3 for calling the SeriesDataSource obj's underlying member method code with example usage: obj.tile(cls, op) and returns: new_op