class_docstr: Base class for linear parameter constraints.
  
  Constraints are expressed using a map from parameter name to weight
  followed by a bound.
  
  The constraint is satisfied if w * v <= b where:
      w is the vector of parameter weights.
      v is a vector of parameter values.
      b is the specified bound.
      * is the dot product operator.
docstr: Whether or not the set of parameter values satisfies the constraint.
  
  Does a weighted sum of the parameter values based on the constraint_dict
  and checks that the sum is less than the bound.
  
  Args:
      parameter_dict: Map from parameter name to parameter value.
  
  Returns:
      Whether the constraint is satisfied.
code: def check(self, parameter_dict: Dict[str, Union[int, float]]) -> bool:
      """Whether or not the set of parameter values satisfies the constraint.
  
      Does a weighted sum of the parameter values based on the constraint_dict
      and checks that the sum is less than the bound.
  
      Args:
          parameter_dict: Map from parameter name to parameter value.
  
      Returns:
          Whether the constraint is satisfied.
      """
      for parameter_name in self.constraint_dict.keys():
          if parameter_name not in parameter_dict.keys():
              raise ValueError(
                  f"`{parameter_name}` not present in param_dict."
              )
  
      weighted_sum = sum(
          float(parameter_dict[param]) * weight
          for param, weight in self.constraint_dict.items()
      )
      # Expected `int` for 2nd anonymous parameter to call `int.__le__` but got
      # `float`.
      return weighted_sum <= self._bound + 1e-8
  
imports: from __future__ import annotations
  from typing import Dict, List, Union
  from ax.core.parameter import ChoiceParameter, FixedParameter, Parameter, RangeParameter
  from ax.core.types import ComparisonOp
  from ax.utils.common.base import SortableBase
label_desc: Use image node_id 5 for calling the ParameterConstraint obj's underlying member method code with example usage: obj.check(parameter_dict) and returns: unknown