code: def to_dict(
      df: DataFrame,
      orient: Literal[
          "dict", "list", "series", "split", "tight", "index"
      ] = ...,
      *,
      into: type[MutableMappingT] | MutableMappingT,
      index: bool = ...,
  ) -> MutableMappingT:
      ...
  
file_path: pandas/pandas/core/methods/to_dict.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Literal, overload
  import warnings
  import numpy
  from pandas._libs import lib, missing
  from pandas.util._exceptions import find_stack_level
  from pandas.core.dtypes.cast import maybe_box_native
  from pandas.core.dtypes.dtypes import BaseMaskedDtype, ExtensionDtype
  from pandas.core import common
label_desc: Use image node_id 1 for calling a global function with example usage: to_dict(df, orient) without return types