code: def __getattr__(name: str):
      # GH#55139
      import warnings
  
      if name in [
          "Block",
          "ExtensionBlock",
          "DatetimeTZBlock",
          "create_block_manager_from_blocks",
      ]:
          # GH#33892
          warnings.warn(
              f"{name} is deprecated and will be removed in a future version. "
              "Use public APIs instead.",
              DeprecationWarning,
              # https://github.com/pandas-dev/pandas/pull/55139#pullrequestreview-1720690758
              # on hard-coding stacklevel
              stacklevel=2,
          )
  
          if name == "create_block_manager_from_blocks":
              from pandas.core.internals.managers import (
                  create_block_manager_from_blocks,
              )
  
              return create_block_manager_from_blocks
  
          elif name == "Block":
              from pandas.core.internals.blocks import Block
  
              return Block
  
          elif name == "DatetimeTZBlock":
              from pandas.core.internals.blocks import DatetimeTZBlock
  
              return DatetimeTZBlock
  
          elif name == "ExtensionBlock":
              from pandas.core.internals.blocks import ExtensionBlock
  
              return ExtensionBlock
  
      raise AttributeError(
          f"module 'pandas.core.internals.api' has no attribute '{name}'"
      )
  
file_path: pandas/pandas/core/internals/api.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import numpy
  from pandas._libs.internals import BlockPlacement
  from pandas.core.dtypes.common import pandas_dtype
  from pandas.core.dtypes.dtypes import DatetimeTZDtype, PeriodDtype
  from pandas.core.arrays import DatetimeArray
  from pandas.core.construction import extract_array
  from pandas.core.internals.blocks import check_ndim, ensure_block_shape, extract_pandas_array, get_block_type, maybe_coerce_values
label_desc: Use image node_id 3 for calling a global function with example usage: __getattr__(name) and returns: create_block_manager_from_blocks, Block, DatetimeTZBlock, ExtensionBlock