class_docstr: Base class for Measurable Elemwise variables
class_docstr_tok: ["Base","class","for","Measurable","Elemwise","variables"]
code: def __init__(self, scalar_op, *args, **kwargs):
      if not isinstance(scalar_op, self.valid_scalar_types):
          raise TypeError(
              f"scalar_op {scalar_op} is not valid for class {self.__class__}. "
              f"Acceptable types are {self.valid_scalar_types}"
          )
      super().__init__(scalar_op, *args, **kwargs)
  
file_path: pymc/pymc/logprob/abstract.py
imports: import abc
  from functools import singledispatch
  from typing import Sequence, Tuple
  from pytensor.graph.op import Op
  from pytensor.graph.utils import MetaType
  from pytensor.tensor import TensorVariable
  from pytensor.tensor.elemwise import Elemwise
  from pytensor.tensor.random.op import RandomVariable
label_desc: Use image node_id 1 to create a new MeasurableElemwise object from inherited base classes: Elemwise with example: obj = MeasurableElemwise(scalar_op)