code: def test_year_attribute(self):
      expected = np.array(
          ["1999", "2004", "1817", "2100", "2013", "1631"],
          dtype="datetime64[Y]",
      )
  
      assert_array_equal(self.data["attr_year"], expected)
  
imports: import datetime
  import os
  import sys
  from os.path import join
  from io import StringIO
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal, assert_equal, assert_
  from pytest import raises
  from scipy.io.arff import loadarff
  from scipy.io.arff._arffread import read_header, ParseArffError
label_desc: Use image node_id 2 for calling the TestDateAttribute obj's underlying member method code with example usage: obj.test_year_attribute() without return types