code: def test_validate_examples_in_csv_with_examples(self):
      (
          data_location,
          _,
          options,
          expected_result,
      ) = self._get_anomalous_csv_test(
          delimiter=",",
          output_column_names=False,
          generate_single_file=True,
          has_schema=True,
      )
  
      (
          result,
          sampled_examples,
      ) = validation_lib.validate_examples_in_csv(
          data_location=data_location,
          stats_options=options,
          column_names=None,
          delimiter=",",
          num_sampled_examples=99,
      )
      compare_fn = (
          test_util.make_dataset_feature_stats_list_proto_equal_fn(
              self, expected_result
          )
      )
      compare_fn([result])
      self.assertCountEqual(
          [
              "annotated_enum_ENUM_TYPE_UNEXPECTED_STRING_VALUES",
          ],
          sampled_examples.keys(),
      )
      got_df = sampled_examples[
          "annotated_enum_ENUM_TYPE_UNEXPECTED_STRING_VALUES"
      ]
      expected_df = pd.DataFrame.from_records(
          [["D", 1]], columns=["annotated_enum", "other_feature"]
      )
      expected_df["annotated_enum"] = expected_df[
          "annotated_enum"
      ].astype(bytes)
      # We can't be too picky about dtypes; try to coerce to expected types.
      for col in got_df.columns:
          if col in expected_df.columns:
              got_df[col] = got_df[col].astype(expected_df[col].dtype)
      self.assertTrue(expected_df.equals(got_df))
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl.testing import absltest
  from absl.testing import parameterized
  import pandas
  import tensorflow
  from tensorflow_data_validation.statistics import stats_options
  from tensorflow_data_validation.utils import test_util
  from tensorflow_data_validation.utils import validation_lib
  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 5 for calling the ValidationLibTest obj's underlying member method code with example usage: obj.test_validate_examples_in_csv_with_examples() without return types