code: def _build_index_filter(
      cls, in_data: pd.DataFrame, op: "DataFrameBloomFilter"
  ):
      if isinstance(in_data.index, pd.MultiIndex):
          index = in_data.index.get_level_values(op.on)
      else:
          index = in_data.index
      bloom_filter = BloomFilter(
          max_elements=op.max_elements, error_rate=op.error_rate
      )
      index.map(lambda v: bloom_filter.add(cls._get_value(v)))
      return bloom_filter
  
imports: from typing import Union, List, Any
  import numpy
  import pandas
  from ...config import options
  from ...core import OutputType
  from ...core.context import Context
  from ...lib.bloom_filter import BloomFilter
  from ...serialization.serializables import AnyField, Int64Field, Float64Field, StringField
  from ...None import opcodes
  from ...typing import TileableType
  from ..operands import DataFrameOperandMixin, DataFrameOperand
  from ..utils import parse_index
label_desc: Use image node_id 6 for calling the DataFrameBloomFilter obj's underlying member method code with example usage: obj._build_index_filter(cls, in_data, op) and returns: bloom_filter