code: def setUp(self):
      # Change the encoding for Click since Python 3 is configured to use ASCII as
      # encoding for the environment.
      super().setUp()
      if codecs.lookup(locale.getpreferredencoding()).name == "ascii":
          os.environ["LANG"] = "en_US.utf-8"
      self.runner = click_testing.CliRunner()
      self.mock_create_handler = self.enter_context(
          mock.patch.object(
              handler_factory, "create_handler", autospec=True
          )
      )
  
imports: import codecs
  import locale
  import os
  from unittest import mock
  from click import testing
  import tensorflow
  from tfx.tools.cli.commands.pipeline import pipeline_group
  from tfx.tools.cli.handler import handler_factory
  from tfx.utils import test_case_utils
label_desc: Use image node_id 1 for calling the PipelineTest obj's underlying member method code with example usage: obj.setUp() without return types