code: def _contains_index_name(df, columns_or_index):
      """
      Test whether ``columns_or_index`` contains a reference
      to the index of ``df
  
      This is the local (non-collection) version of
      ``dask.core.DataFrame._contains_index_name``.
      """
  
      def _is_index_level_reference(x, key):
          return (
              x.index.name is not None
              and (np.isscalar(key) or isinstance(key, tuple))
              and key == x.index.name
              and key not in getattr(x, "columns", ())
          )
  
      if isinstance(columns_or_index, list):
          return any(
              _is_index_level_reference(df, n) for n in columns_or_index
          )
      else:
          return _is_index_level_reference(df, columns_or_index)
  
imports: from __future__ import annotations
  import math
  import pickle
  import warnings
  from functools import partial, wraps
  import numpy
  import pandas
  from pandas.api.types import is_dtype_equal
  from tlz import merge_sorted, unique
  from dask.base import is_dask_collection, tokenize
  from dask.dataframe import methods
  from dask.dataframe.core import DataFrame, Index, Series, _concat, _deprecated_kwarg, _Frame, _maybe_from_pandas, is_broadcastable, map_partitions, new_dd_object, prefix_reduction, suffix_reduction
  from dask.dataframe.dispatch import group_split_dispatch, hash_object_dispatch
  from dask.dataframe.io import from_pandas
  from dask.dataframe.shuffle import partitioning_index, rearrange_by_divisions, shuffle, shuffle_group
  from dask.dataframe.utils import asciitable, check_meta, is_dataframe_like, is_series_like, make_meta, strip_unknown_categories
  from dask.highlevelgraph import HighLevelGraph
  from dask.layers import BroadcastJoinLayer
  from dask.utils import M, apply, get_default_shuffle_method
label_desc: Use image node_id 26 for calling a global function with example usage: _contains_index_name(df, columns_or_index) and returns: unknown, any, _is_index_level_reference