code: def disallow_ndim_indexing(result) -> None:
      """
      Helper function to disallow multi-dimensional indexing on 1D Series/Index.
  
      GH#27125 indexer like idx[:, None] expands dim, but we cannot do that
      and keep an index, so we used to return ndarray, which was deprecated
      in GH#30588.
      """
      if np.ndim(result) > 1:
          raise ValueError(
              "Multi-dimensional indexing (e.g. `obj[:, None]`) is no longer "
              "supported. Convert to a numpy array before indexing instead."
          )
  
file_path: pandas/pandas/core/indexers/utils.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any
  import numpy
  from pandas._libs import lib
  from pandas.core.dtypes.common import is_array_like, is_bool_dtype, is_integer, is_integer_dtype, is_list_like
  from pandas.core.dtypes.dtypes import ExtensionDtype
  from pandas.core.dtypes.generic import ABCIndex, ABCSeries
label_desc: Use image node_id 9 for calling a global function with example usage: disallow_ndim_indexing(result) without return types