code: def setUp(self):
      super().setUp()
      self.flags_dict = {}
      sys.modules["kfp"] = mock.Mock()
      sys.modules["kfp_server_api"] = mock.Mock()
  
imports: import os
  import sys
  import tempfile
  from unittest import mock
  import tensorflow
  from tfx.tools.cli import labels
  from tfx.tools.cli.handler import beam_handler
  from tfx.tools.cli.handler import handler_factory
  from tfx.tools.cli.handler import local_handler
label_desc: Use image node_id 1 for calling the HandlerFactoryTest obj's underlying member method code with example usage: obj.setUp() without return types