code: def _is_supported_index(df_index: pd.Index) -> bool:
      """Check if the index is supported by the data editor component.
  
      Parameters
      ----------
  
      df_index : pd.Index
          The index to check.
  
      Returns
      -------
  
      bool
          True if the index is supported, False otherwise.
      """
  
      return (
          type(df_index)
          in [
              pd.RangeIndex,
              pd.Index,
              pd.DatetimeIndex,
              # Categorical index doesn't work since arrow
              # does serialize the options:
              # pd.CategoricalIndex,
              # Interval type isn't editable currently:
              # pd.IntervalIndex,
              # Period type isn't editable currently:
              # pd.PeriodIndex,
          ]
          # We need to check these index types without importing, since they are deprecated
          # and planned to be removed soon.
          or is_type(df_index, "pandas.core.indexes.numeric.Int64Index")
          or is_type(
              df_index, "pandas.core.indexes.numeric.Float64Index"
          )
          or is_type(
              df_index, "pandas.core.indexes.numeric.UInt64Index"
          )
      )
  
imports: from __future__ import annotations
  import json
  from dataclasses import dataclass
  from decimal import Decimal
  from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Mapping, Optional, Set, Tuple, TypeVar, Union, cast, overload
  import pandas
  import pyarrow
  from typing_extensions import Literal, TypeAlias, TypedDict
  from streamlit import logger
  from streamlit import type_util
  from streamlit.deprecation_util import deprecate_func_name
  from streamlit.elements.form import current_form_id
  from streamlit.elements.lib.column_config_utils import INDEX_IDENTIFIER, ColumnConfigMapping, ColumnConfigMappingInput, ColumnDataKind, DataframeSchema, apply_data_specific_configs, determine_dataframe_schema, is_type_compatible, marshall_column_config, process_config_mapping, update_column_config
  from streamlit.elements.lib.pandas_styler_utils import marshall_styler
  from streamlit.elements.utils import check_callback_rules, check_session_state_rules
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.Arrow_pb2 import Arrow
  from streamlit.runtime.metrics_util import gather_metrics
  from streamlit.runtime.scriptrunner import get_script_run_ctx
  from streamlit.runtime.state import WidgetArgs, WidgetCallback, WidgetKwargs, register_widget
  from streamlit.runtime.state.common import compute_widget_id
  from streamlit.type_util import DataFormat, DataFrameGenericAlias, Key, is_type, to_key
  from streamlit.util import calc_md5
label_desc: Use image node_id 6 for calling a global function with example usage: _is_supported_index(df_index) and returns: unknown