code: def test_masked_array_error(self):
      with pm.Model():
          with pytest.raises(
              NotImplementedError,
              match="Masked arrays or arrays with `nan` entries are not supported.",
          ):
              pm.ConstantData("x", [0, 1, np.nan, 2])
  
imports: import io
  import itertools
  import re
  import cloudpickle
  import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  from pytensor import shared
  from pytensor.tensor.variable import TensorVariable
  import pymc
  from pymc.data import is_minibatch
  from pymc.pytensorf import GeneratorOp, floatX
label_desc: Use image node_id 20 for calling the TestData obj's underlying member method code with example usage: obj.test_masked_array_error() without return types