class_docstr: Base class for defining arms.
  
  Randomization in experiments assigns units to a given arm. Thus, the arm
  encapsulates the parametrization needed by the unit.
docstr: Need to overwrite the default __eq__ method of Base,
  because accessing the "name" attribute of Arm
  can result in an error.
docstr_tok: ["Need","to","overwrite","the","default","__eq__","method","of","Base",",","because","accessing","the","``","name","''","attribute","of","Arm","can","result","in","an","error","."]
code: def __eq__(self, other: "Arm") -> bool:
      """Need to overwrite the default __eq__ method of Base,
      because accessing the "name" attribute of Arm
      can result in an error.
      """
      parameters_equal = self.parameters == other.parameters
      names_equal = self.has_name == other.has_name
      if names_equal and self.has_name:
          names_equal = self.name == other.name
      return parameters_equal and names_equal
  
imports: import hashlib
  import json
  from typing import Optional
  from ax.core.types import TParameterization
  from ax.utils.common.base import SortableBase
  from ax.utils.common.equality import equality_typechecker
  from ax.utils.common.typeutils import numpy_type_to_python_type
label_desc: Use image node_id 11 for calling the Arm obj's underlying member method code with example usage: obj.__eq__(other) and returns: unknown