code: def test_dateheader(self):
      ofile = open(test7)
      rel, attrs = read_header(ofile)
      ofile.close()
  
      assert_(rel == "test7")
  
      assert_(len(attrs) == 5)
  
      assert_(attrs[0][0] == "attr_year")
      assert_(attrs[0][1] == "DATE yyyy")
  
      assert_(attrs[1][0] == "attr_month")
      assert_(attrs[1][1] == "DATE yyyy-MM")
  
      assert_(attrs[2][0] == "attr_date")
      assert_(attrs[2][1] == "DATE yyyy-MM-dd")
  
      assert_(attrs[3][0] == "attr_datetime_local")
      assert_(attrs[3][1] == 'DATE "yyyy-MM-dd HH:mm"')
  
      assert_(attrs[4][0] == "attr_datetime_missing")
      assert_(attrs[4][1] == 'DATE "yyyy-MM-dd HH:mm"')
  
imports: from __future__ import division, print_function, absolute_import
  import datetime
  import os
  import sys
  from os.path import join
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal, assert_equal, assert_
  import pytest
  from pytest import raises
  from scipy.io.arff.arffread import loadarff
  from scipy.io.arff.arffread import read_header, parse_type, ParseArffError
label_desc: Use image node_id 4 for calling the TestHeader obj's underlying member method code with example usage: obj.test_dateheader() without return types