code: def index_dropna(index, how="any"):
      """
      Return Index without NA/NaN values.
  
      Parameters
      ----------
      how : {'any', 'all'}, default 'any'
          If the Index is a MultiIndex, drop the value when any or all levels
          are NaN.
  
      Returns
      -------
      Index
      """
      use_inf_as_na = options.dataframe.mode.use_inf_as_na
      op = DataFrameDropNA(
          axis=0,
          how=how,
          output_types=[OutputType.index],
          use_inf_as_na=use_inf_as_na,
      )
      return op(index)
  
imports: import itertools
  import numpy
  import pandas
  from ...None import opcodes
  from ...core import OutputType, recursive_tile
  from ...config import options
  from ...serialization.serializables import AnyField, BoolField, StringField, Int32Field
  from ...utils import no_default, pd_release_version
  from ..align import align_dataframe_series
  from ..operands import DataFrameOperand, DataFrameOperandMixin
  from ..utils import parse_index, validate_axis
label_desc: Use image node_id 3 for calling a global function with example usage: index_dropna(index, how) and returns: op