code: def BaseTestHandler():
      from tvm.micro import project_api
  
      class BaseTestHandler_Impl(project_api.server.ProjectAPIHandler):
          DEFAULT_TEST_SERVER_INFO = project_api.server.ServerInfo(
              platform_name="platform_name",
              is_template=True,
              model_library_format_path="./model-library-format-path.sh",
              project_options=[
                  project_api.server.ProjectOption(
                      name="foo",
                      optional=["build"],
                      type="bool",
                      help="Option foo",
                  ),
                  project_api.server.ProjectOption(
                      name="bar",
                      required=["generate_project"],
                      type="str",
                      choices=["qux"],
                      help="Option bar",
                  ),
              ],
          )
  
          def server_info_query(self, tvm_version):
              return self.DEFAULT_TEST_SERVER_INFO
  
          def generate_project(
              self,
              model_library_format_path,
              crt_path,
              project_path,
              options,
          ):
              assert (
                  False
              ), "generate_project is not implemented for this test"
  
          def build(self, options):
              assert False, "build is not implemented for this test"
  
          def flash(self, options):
              assert False, "flash is not implemented for this test"
  
          def open_transport(self, options):
              assert (
                  False
              ), "open_transport is not implemented for this test"
  
          def close_transport(self, options):
              assert (
                  False
              ), "open_transport is not implemented for this test"
  
          def read_transport(self, n, timeout_sec):
              assert (
                  False
              ), "read_transport is not implemented for this test"
  
          def write_transport(self, data, timeout_sec):
              assert (
                  False
              ), "write_transport is not implemented for this test"
  
      return BaseTestHandler_Impl
  
imports: import collections
  import io
  import json
  import sys
  import unittest
  from unittest import mock
  import pytest
  import tvm
  import tvm.testing
label_desc: Use image node_id 1 for calling a global function with example usage: BaseTestHandler() and returns: BaseTestHandler_Impl, self