docstr: Test for scoped_labels.
code: def testScopedLabels(self):
      """Test for scoped_labels."""
      orig_labels = telemetry_utils.make_labels_dict()
      with telemetry_utils.scoped_labels({"foo": "bar"}):
          self.assertDictEqual(
              telemetry_utils.make_labels_dict(),
              dict({"foo": "bar"}, **orig_labels),
          )
          with telemetry_utils.scoped_labels(
              {
                  telemetry_utils.LABEL_TFX_EXECUTOR: "custom_component.custom_executor"
              }
          ):
              self.assertDictEqual(
                  telemetry_utils.make_labels_dict(),
                  dict(
                      {
                          "foo": "bar",
                          telemetry_utils.LABEL_TFX_EXECUTOR: "third_party_executor",
                      },
                      **orig_labels,
                  ),
              )
          with telemetry_utils.scoped_labels(
              {
                  telemetry_utils.LABEL_TFX_EXECUTOR: "tfx.components.example_gen.import_example_gen.executor.Executor"
              }
          ):
              self.assertDictEqual(
                  telemetry_utils.make_labels_dict(),
                  dict(
                      {
                          "foo": "bar",
                          telemetry_utils.LABEL_TFX_EXECUTOR: "tfx-components-example_gen-import_example_gen-executor-executor",  # Label is normalized.
                      },
                      **orig_labels,
                  ),
              )
          with telemetry_utils.scoped_labels(
              {
                  telemetry_utils.LABEL_TFX_EXECUTOR: "tfx.extensions.google_cloud_big_query.example_gen.executor.Executor"
              }
          ):
              self.assertDictEqual(
                  telemetry_utils.make_labels_dict(),
                  dict(
                      {
                          "foo": "bar",
                          telemetry_utils.LABEL_TFX_EXECUTOR: "tfx-extensions-google_cloud_big_query-example_gen-executor-exec",  # Label is normalized.
                      },
                      **orig_labels,
                  ),
              )
  
file_path: tfx/tfx/utils/telemetry_utils_test.py
imports: import sys
  from googleapiclient import http
  import tensorflow
  from tfx import version
  from tfx.utils import telemetry_utils
label_desc: Use image node_id 2 for calling the TelemetryUtilsTest obj's underlying member method code with example usage: obj.testScopedLabels() without return types