code: def test_get_csv_header_different_headers(self):
      temp_directory = self._get_temp_dir()
      delimiter = ","
      records_1 = ["feature1,feature2", "1.0,aa"]
      records_2 = ["feature1,feature2_different", "2.0,bb"]
      self._write_records_to_csv(
          records_1, temp_directory, "input_data_1.csv"
      )
      self._write_records_to_csv(
          records_2, temp_directory, "input_data_2.csv"
      )
      data_location = os.path.join(temp_directory, "input_data_*.csv")
      with self.assertRaisesRegexp(
          ValueError, "Files have different headers."
      ):
          _ = stats_gen_lib.get_csv_header(data_location, delimiter)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import gzip
  import os
  import tempfile
  from absl.testing import absltest
  from absl.testing import parameterized
  from apache_beam.io.filesystem import CompressionTypes
  import pandas
  import tensorflow
  from tensorflow_data_validation.statistics import stats_options
  from tensorflow_data_validation.utils import stats_gen_lib
  from tensorflow_data_validation.utils import test_util
  from google.protobuf import text_format
  from tensorflow_metadata.proto.v0 import schema_pb2
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 23 for calling the StatsGenTest obj's underlying member method code with example usage: obj.test_get_csv_header_different_headers() without return types