code: def test_out_of_order_fields(self):
      # names in the same order, padding added to descr
      x = self.data[["col1", "col2"]]
      assert_equal(x.dtype.names, ("col1", "col2"))
      assert_equal(
          x.dtype.descr, [("col1", "<i4"), ("col2", "<i4"), ("", "|V4")]
      )
  
      # names change order to match indexing, as of 1.14 - descr can't
      # represent that
      y = self.data[["col2", "col1"]]
      assert_equal(y.dtype.names, ("col2", "col1"))
      assert_raises(ValueError, lambda: y.dtype.descr)
  
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 6 for calling the TestRecord obj's underlying member method code with example usage: obj.test_out_of_order_fields() without return types