code: def index_memory_usage(index, deep=False):
      """
      Memory usage of the values.
  
      Parameters
      ----------
      deep : bool
          Introspect the data deeply, interrogate
          `object` dtypes for system-level memory consumption.
  
      Returns
      -------
      bytes used
  
      See Also
      --------
      numpy.ndarray.nbytes
  
      Notes
      -----
      Memory usage does not include memory consumed by elements that
      are not components of the array if deep=False
      """
      op = DataFrameMemoryUsage(index=False, deep=deep)
      return op(index)
  
imports: import operator
  from functools import reduce
  import numpy
  import pandas
  from ...None import opcodes
  from ...config import options
  from ...core.operand import OperandStage
  from ...serialization.serializables import BoolField, Int64Field
  from ...utils import ceildiv, lazy_import
  from ..operands import DataFrameOperand, DataFrameOperandMixin
  from ..core import IndexValue
  from ..utils import parse_index
label_desc: Use image node_id 3 for calling a global function with example usage: index_memory_usage(index, deep) and returns: op