code: def _validate_arg(arg, available_options, arg_name):
      """Checks if the arg is in the available options, and raises a ``ValueError`` if not."""
      if arg not in available_options:
          raise ValueError(
              "Unsupported {arg_name}: {arg}. You may need to upgrade your SDK version "
              "(pip install -U sagemaker) for newer {arg_name}s. Supported {arg_name}(s): "
              "{options}.".format(
                  arg_name=arg_name,
                  arg=arg,
                  options=", ".join(available_options),
              )
          )
  
imports: from __future__ import absolute_import
  import json
  import logging
  import os
  import re
  from typing import Optional
  from packaging.version import Version
  from sagemaker import utils
  from sagemaker.jumpstart.constants import DEFAULT_JUMPSTART_SAGEMAKER_SESSION
  from sagemaker.jumpstart.utils import is_jumpstart_model_input
  from sagemaker.spark import defaults
  from sagemaker.jumpstart import artifacts
  from sagemaker.workflow import is_pipeline_variable
  from sagemaker.workflow.utilities import override_pipeline_parameter_var
  from sagemaker.fw_utils import GRAVITON_ALLOWED_TARGET_INSTANCE_FAMILY, GRAVITON_ALLOWED_FRAMEWORKS
label_desc: Use image node_id 17 for calling a global function with example usage: _validate_arg(arg, available_options, arg_name) without return types