code: def testUseMatchingGeneratorId(self):
      bundle = generator_pb2.GeneratorBundle(
          generator_details=generator_pb2.GeneratorDetails(
              id="test_generator"
          ),
          checkpoint_file=[b"foo.ckpt"],
          metagraph_file=b"foo.ckpt.meta",
      )
  
      SeuenceGenerator(bundle=bundle)
  
      bundle.generator_details.id = "blarg"
  
      with self.assertRaises(sequence_generator.SequenceGeneratorError):
          SeuenceGenerator(bundle=bundle)
  
file_path: magenta/magenta/models/shared/sequence_generator_test.py
imports: from magenta.models.shared import model
  from magenta.models.shared import sequence_generator
  from note_seq.protobuf import generator_pb2
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling the SequenceGeneratorTest obj's underlying member method code with example usage: obj.testUseMatchingGeneratorId() without return types