code: def get_range_parameter(
      model: ModelBridge, param_name: str
  ) -> RangeParameter:
      """
      Get the range parameter with the given name from the model.
  
      Throws if parameter doesn't exist or is not a range parameter.
  
      Args:
          model: The model.
          param_name: The name of the RangeParameter to be found.
  
      Returns: The RangeParameter named `param_name`.
      """
  
      range_param = model.model_space.parameters.get(param_name)
      if range_param is None:
          raise ValueError(f"Parameter `{param_name}` does not exist.")
      if not isinstance(range_param, RangeParameter):
          raise ValueError(f"{param_name} is not a RangeParameter")
  
      return range_param
  
imports: import math
  from collections import Counter
  from logging import Logger
  from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union
  import numpy
  from ax.core.generator_run import GeneratorRun
  from ax.core.observation import Observation, ObservationFeatures
  from ax.core.parameter import ChoiceParameter, FixedParameter, Parameter, ParameterType, RangeParameter
  from ax.core.types import TParameterization
  from ax.modelbridge.base import ModelBridge
  from ax.modelbridge.prediction_utils import _compute_scalarized_outcome, predict_at_point
  from ax.modelbridge.transforms.ivw import IVW
  from ax.plot.base import DECIMALS, PlotData, PlotInSampleArm, PlotOutOfSampleArm, Z
  from ax.utils.common.logger import get_logger
  from ax.utils.common.typeutils import not_none
label_desc: Use image node_id 12 for calling a global function with example usage: get_range_parameter(model, param_name) and returns: range_param