code: def test_type_parsing(self):
      # Test parsing type of attribute from their value.
      ofile = open(test2)
      rel, attrs = read_header(ofile)
      ofile.close()
  
      expected = [
          "numeric",
          "numeric",
          "numeric",
          "numeric",
          "numeric",
          "numeric",
          "string",
          "string",
          "nominal",
          "nominal",
      ]
  
      for i in range(len(attrs)):
          assert_(parse_type(attrs[i][1]) == expected[i])
  
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 1 for calling the TestHeader obj's underlying member method code with example usage: obj.test_type_parsing() without return types