code: def _is_label_like(val) -> bool:
      return isinstance(val, (str, tuple)) or (
          val is not None and is_scalar(val)
      )
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Hashable, Iterator, final
  import warnings
  import numpy
  from pandas._config import using_copy_on_write
  from pandas._typing import ArrayLike, Axis, NDFrameT, npt
  from pandas.errors import InvalidIndexError
  from pandas.util._decorators import cache_readonly
  from pandas.util._exceptions import find_stack_level
  from pandas.core.dtypes.common import is_categorical_dtype, is_list_like, is_scalar
  from pandas.core import algorithms
  from pandas.core.arrays import Categorical, ExtensionArray
  import pandas.core.common
  from pandas.core.frame import DataFrame
  from pandas.core.groupby import ops
  from pandas.core.groupby.categorical import recode_for_groupby
  from pandas.core.indexes.api import CategoricalIndex, Index, MultiIndex
  from pandas.core.series import Series
  from pandas.io.formats.printing import pprint_thing
label_desc: Use image node_id 2 for calling a global function with example usage: _is_label_like(val) and returns: unknown