code: def test_monkey_patched_summaries_kwargs(self, summary_maker):
      summary = summary_maker()
      before = _summaries()
      with monkey_patched_summaries(summary):
          for want, got in zip(before, _summaries()):
              self.assertNotEqual(want, got)
          tf.summary.scalar(
              name="scalar",
              tensor=1,
              collections=["collection"],
              family="family",
          )
          tf.summary.image(
              name="image",
              tensor=1,
              max_outputs=3,
              collections=["collection"],
              family="family",
          )
          tf.summary.histogram(
              name="histogram",
              values=1,
              collections=["collection"],
              family="family",
          )
          tf.summary.audio(
              name="audio",
              tensor=1,
              sample_rate=3,
              max_outputs=3,
              collections=["collection"],
              family="family",
          )
  
          want_summary_fn_count = 4
          try:
              tf.contrib.summary.scalar(
                  name="scalar_v2", tensor=1, family="family", step=10
              )
              tf.contrib.summary.image(
                  name="image_v2",
                  tensor=1,
                  bad_color=True,
                  max_images=3,
                  family="family",
                  step=10,
              )
              tf.contrib.summary.histogram(
                  name="histogram_v2",
                  tensor=1,
                  family="family",
                  step=10,
              )
              tf.contrib.summary.audio(
                  name="audio_v2",
                  tensor=1,
                  sample_rate=3,
                  max_outputs=3,
                  family="family",
                  step=10,
              )
              want_summary_fn_count += 4
          except (AttributeError, ImportError):
              # TF 2.0 eliminates tf.contrib.
              pass
      self.assertEqual(before, _summaries())
      self.assertLen(
          self._get_summary_ops(summary), want_summary_fn_count
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import functools
  import os
  from absl.testing import parameterized
  from adanet import tf_compat
  from adanet.core import testing_utils
  from adanet.core.summary import _ScopedSummary
  from adanet.core.summary import _TPUScopedSummary
  from adanet.core.summary import monkey_patched_summaries
  from six.moves import range
  import tensorflow.compat.v1
  from tensorflow.python.ops import summary_ops_v2
label_desc: Use image node_id 3 for calling the MonkeyPatchTest obj's underlying member method code with example usage: obj.test_monkey_patched_summaries_kwargs(summary_maker) without return types