code: def setUp(self):
      super(CalculateMetricsTest, self).setUp()
      self.info_dict = {
          "en": {
              "count": 2,
              "num_preserved_chars": 24,
              "num_dropped_chars": 2,
              "num_non_unk_wordpieces": 8,
              "preserved_ratio": [2, 3],
              "dropped_ratio": [0.5, 0],
              "wordpieces": collections.Counter(
                  {"the": 2, "le": 1, "##sson": 1, "plan": 1, "##s": 1}
              ),
          },
          "fr": {
              "count": 2,
              "num_preserved_chars": 24,
              "num_dropped_chars": 2,
              "num_non_unk_wordpieces": 8,
              "preserved_ratio": [5, 7],
              "dropped_ratio": [0.4, 0.6],
              "wordpieces": collections.Counter(
                  {"bon": 2, "le": 2, "jour": 1, "soir": 1, "homme": 1}
              ),
          },
      }
      self.metrics = utils.CalculateMetrics()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import logging
  import tempfile
  from absl.testing import absltest
  import apache_beam
  from apache_beam.testing.test_pipeline import TestPipeline
  from apache_beam.testing.util import assert_that
  from apache_beam.testing.util import equal_to
  import tensorflow.compat.v1
  from tensorflow_text.tools.wordpiece_vocab import utils
label_desc: Use image node_id 1 for calling the CalculateMetricsTest obj's underlying member method code with example usage: obj.setUp() without return types