code: def test_numpy_hardmask(dtype_x_mask, hard):
      dtype, data = dtype_x_mask
      x = MaskedArray(
          data[0], mask=data[1], dtype=dtype, hard_mask=hard
      )
      assert x.hardmask == hard
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_numpy/test_ma/test_MaskedArray.py
imports: from hypothesis import strategies
  import ivy
  from ivy.functional.frontends.numpy.ma.MaskedArray import MaskedArray
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
label_desc: Use image node_id 5 for calling a global function with example usage: test_numpy_hardmask(dtype_x_mask, hard) without return types