code: def _test_dataset_config(filename, **kwargs):
      """Creates a DeepVariantDatasetConfig(**kwargs) and writes it to filename."""
      dataset_config_pbtext_filename = test_utils.test_tmpfile(filename)
      dataset_config = deepvariant_pb2.DeepVariantDatasetConfig(
          **kwargs
      )
      data_providers.write_dataset_config_to_pbtxt(
          dataset_config, dataset_config_pbtext_filename
      )
      return dataset_config_pbtext_filename
  
imports: import math
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow import estimator
  from deepvariant import data_providers
  from deepvariant import dv_config
  from deepvariant import dv_constants
  from deepvariant import dv_utils
  from deepvariant import testdata
  from deepvariant.protos import deepvariant_pb2
  from third_party.nucleus.io import tfrecord
  from third_party.nucleus.testing import test_utils
  from third_party.nucleus.util import variant_utils
  from tensorflow.core.example import example_pb2
label_desc: Use image node_id 3 for calling a global function with example usage: _test_dataset_config(filename) and returns: dataset_config_pbtext_filename