code: def test_yaml_contents(self):
      # Check that the default config values, defined by Experiment and its
      # members, is what we expect it to be.
      cfg = OmegaConf.structured(experiment.Experiment)
      # the following removes the possible effect of env variables
      ds_arg = cfg.data_source_ImplicitronDataSource_args
      ds_arg.dataset_map_provider_JsonIndexDatasetMapProvider_args.dataset_root = (
          ""
      )
      ds_arg.dataset_map_provider_JsonIndexDatasetMapProviderV2_args.dataset_root = (
          ""
      )
      if (
          "dataset_map_provider_SqlIndexDatasetMapProvider_args"
          in ds_arg
      ):
          del (
              ds_arg.dataset_map_provider_SqlIndexDatasetMapProvider_args
          )
      cfg.training_loop_ImplicitronTrainingLoop_args.visdom_port = 8097
      yaml = OmegaConf.to_yaml(cfg, sort_keys=False)
      if DEBUG:
          (DATA_DIR / "experiment.yaml").write_text(yaml)
      self.assertEqual(yaml, (DATA_DIR / "experiment.yaml").read_text())
  
imports: import os
  import tempfile
  import unittest
  from pathlib import Path
  import torch
  from hydra import compose, initialize_config_dir
  from omegaconf import OmegaConf
  from projects.implicitron_trainer.impl.optimizer_factory import ImplicitronOptimizerFactory
  from ..None import experiment
  from .utils import interactive_testing_requested, intercept_logs
label_desc: Use image node_id 4 for calling the TestExperiment obj's underlying member method code with example usage: obj.test_yaml_contents() without return types