code: def test_visualize_embeddings_with_file_writer(self):
      if tf.__version__ == "stub":
          self.skipTest("Requires TensorFlow for FileWriter")
      logdir = self.get_temp_dir()
      config = create_dummy_config()
  
      with tf.compat.v1.Graph().as_default():
          with test_util.FileWriterCache.get(logdir) as writer:
              projector.visualize_embeddings(writer, config)
  
      # Read the configurations from disk and make sure it matches the original.
      with tf.io.gfile.GFile(
          os.path.join(logdir, "projector_config.pbtxt")
      ) as f:
          config2 = projector.ProjectorConfig()
          text_format.Parse(f.read(), config2)
  
      self.assertEqual(config, config2)
  
file_path: tensorboard/tensorboard/plugins/projector/projector_api_test.py
imports: import os
  import tensorflow
  from google.protobuf import text_format
  from tensorboard.plugins import projector
  from tensorboard.util import test_util
label_desc: Use image node_id 2 for calling the ProjectorApiTest obj's underlying member method code with example usage: obj.test_visualize_embeddings_with_file_writer() without return types