code: def test_validate_dataset_keys(self):
      analyzer_cache.validate_dataset_keys(
          {
              analyzer_cache.DatasetKey(k)
              for k in (
                  "foo",
                  "Foo",
                  "A1",
                  "A_1",
                  "A.1",
                  "A-1",
                  "foo@1",
                  "foo*",
                  "foo[]",
                  "foo/goo",
              )
          }
      )
  
      for key in {
          analyzer_cache.DatasetKey(k) for k in ("^foo^", "foo 1")
      }:
          with self.assertRaisesRegexp(
              ValueError,
              "Dataset key .* does not match allowed pattern:",
          ):
              analyzer_cache.validate_dataset_keys({key})
  
file_path: transform/tensorflow_transform/beam/analyzer_cache_test.py
imports: import os
  import apache_beam
  from apache_beam.testing import util
  import numpy
  import tensorflow
  from tensorflow_transform import analyzer_nodes
  from tensorflow_transform import analyzers
  from tensorflow_transform.beam import analyzer_cache
  from tensorflow_transform import test_case
label_desc: Use image node_id 1 for calling the AnalyzerCacheTest obj's underlying member method code with example usage: obj.test_validate_dataset_keys() without return types