code: def test_missing_field(self):
      # https://github.com/numpy/numpy/issues/4806
      arr = np.zeros((3,), dtype=[("x", int), ("y", int)])
      assert_raises(KeyError, lambda: arr[["nofield"]])
  
imports: import collections.abc
  import textwrap
  from io import BytesIO
  from os import path
  from pathlib import Path
  import pytest
  import numpy
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_array_almost_equal, assert_raises, temppath
  from numpy.compat import pickle
label_desc: Use image node_id 13 for calling the TestRecord obj's underlying member method code with example usage: obj.test_missing_field() without return types