code: def test_shared_masked_array_not_implemented():
      x = np.ma.masked_greater(np.array([1, 2, 3, 4]), 3)
      with pytest.raises(
          NotImplementedError, match="MaskedArrays are not supported"
      ):
          pytensor.shared(x)
  
file_path: pytensor/tests/tensor/test_sharedvar.py
imports: from functools import update_wrapper
  import numpy
  import pytest
  import pytensor
  import pytensor.sparse
  import pytensor.tensor
  from pytensor.misc.may_share_memory import may_share_memory
  from pytensor.tensor import get_vector_length
  from pytensor.tensor.basic import MakeVector
  from pytensor.tensor.shape import Shape_i, specify_shape
  from pytensor.tensor.sharedvar import ScalarSharedVariable, TensorSharedVariable
  from tests import unittest_tools
label_desc: Use image node_id 5 for calling a global function with example usage: test_shared_masked_array_not_implemented() without return types