code: def test_measurable_elemwise():
      # Default does not accept any scalar_op
      with pytest.raises(
          TypeError, match=re.escape("scalar_op exp is not valid")
      ):
          MeasurableElemwise(exp)
  
      class TestMeasurableElemwise(MeasurableElemwise):
          valid_scalar_types = (Exp,)
  
      measurable_exp_op = TestMeasurableElemwise(scalar_op=exp)
      measurable_exp = measurable_exp_op(0.0)
      assert isinstance(measurable_exp.owner.op, MeasurableVariable)
  
file_path: pymc/tests/logprob/test_abstract.py
imports: import re
  import numpy
  import pytensor.tensor
  import pytest
  import scipy.stats.distributions
  from pytensor.scalar import Exp, exp
  import pymc
  from pymc.logprob.abstract import MeasurableElemwise, MeasurableVariable, _logcdf_helper
  from pymc.logprob.basic import logcdf
label_desc: Use image node_id 2 for calling a global function with example usage: test_measurable_elemwise() without return types