code: def _calc_chunk_index(cls, label, chunk_indexes):
      for i, index in enumerate(chunk_indexes):
          if isinstance(index, pd.RangeIndex) and in_range_index(
              label, index
          ):
              return i
          elif label in index:
              return i
      raise TypeError(f"label {label} doesn't exist")
  
imports: import itertools
  from numbers import Integral
  import pandas
  import numpy
  from ...None import opcodes
  from ...config import options
  from ...core import ENTITY_TYPE, OutputType, recursive_tile
  from ...serialization.serializables import AnyField, Int32Field, BoolField
  from ...tensor.core import TENSOR_TYPE, TENSOR_CHUNK_TYPE
  from ...tensor.datasource import tensor
  from ...utils import has_unknown_shape
  from ..align import align_dataframe_series, align_dataframe_dataframe
  from ..core import SERIES_TYPE, SERIES_CHUNK_TYPE, DATAFRAME_TYPE, DATAFRAME_CHUNK_TYPE, is_chunk_meta_lazy
  from ..merge import DataFrameConcat
  from ..operands import DataFrameOperand, DataFrameOperandMixin
  from ..utils import parse_index, in_range_index
  from .utils import calc_columns_index
label_desc: Use image node_id 8 for calling the SeriesIndex obj's underlying member method code with example usage: obj._calc_chunk_index(cls, label, chunk_indexes) and returns: i, i