code: def _check_argument(param, options, value, prefix=False):
      """Raise if value for param is not in options."""
      if prefix and value is not None:
          failure = not any(
              value.startswith(p) for p in options if isinstance(p, str)
          )
      else:
          failure = value not in options
      if failure:
          raise ValueError(
              f"The value for `{param}` must be one of {options}, "
              f"but {repr(value)} was passed."
          )
      return value
  
imports: import os
  import inspect
  import warnings
  import colorsys
  from contextlib import contextmanager
  from urllib.request import urlopen, urlretrieve
  from types import ModuleType
  import numpy
  import pandas
  import matplotlib
  from matplotlib.colors import to_rgb
  import matplotlib.pyplot
  from matplotlib.cbook import normalize_kwargs
  from seaborn._core.typing import deprecated
  from seaborn.external.version import Version
  from seaborn.external.appdirs import user_cache_dir
label_desc: Use image node_id 22 for calling a global function with example usage: _check_argument(param, options, value, prefix) and returns: value