code: def testCreateHandlerBeam(self):
      self.flags_dict[labels.ENGINE_FLAG] = "beam"
      self.assertIs(
          type(handler_factory.create_handler(self.flags_dict)),
          beam_handler.BeamHandler,
      )
  
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 7 for calling the HandlerFactoryTest obj's underlying member method code with example usage: obj.testCreateHandlerBeam() without return types