code: def test_read_data_file():
      """Assert that _read_data_file raises ValueError when the targe column is missing."""
      # Mis-spelled target
      args_list = [
          "tests/tests.csv",
          "-is",
          ",",
          "-target",
          "clas",  # typo for right target 'class'
      ]
      args = _get_arg_parser().parse_args(args_list)
      assert_raises(ValueError, _read_data_file, args=args)
  
      # Correctly spelled target
      args_list = ["tests/tests.csv", "-is", ",", "-target", "class"]
      args = _get_arg_parser().parse_args(args_list)
      input_data = _read_data_file(args)
  
      assert isinstance(input_data, pd.DataFrame)
  
imports: import subprocess
  import sys
  from os import remove, path
  from contextlib import contextmanager
  from distutils.version import LooseVersion
  import nose
  import numpy
  import pandas
  import sklearn
  from tpot.driver import positive_integer, float_range, _get_arg_parser, _print_args, _read_data_file, load_scoring_function, tpot_driver, positive_integer_or_none
  from nose.tools import assert_raises, assert_equal, assert_in
  from unittest import TestCase
label_desc: Use image node_id 8 for calling a global function with example usage: test_read_data_file() without return types