code: def main(
      python_version: str,
      package: str,
      dockerfile_ext: str,
      install_cmd: str = "poetry install",
      no_build: bool = False,
  ):
      """Running test with docker.
  
      Examples:
  
      # testing 'camphr' package in python3.8 environment with Dockerfile.base
      $ python test_docker.py 3.8 camphr base
      """
      dockerfile = f"dockerfiles/Dockerfile.{dockerfile_ext}"
      tagname = f"camphr_{python_version}_{package}_{dockerfile_ext}"
      test_cmd = ["/root/test_local.sh", package]
      workdir = os.path.join("packages", package)
  
      if not os.path.exists(workdir):
          raise ValueError(f"{workdir} not exist")
  
      # build
      if not no_build:
          build(
              dockerfile,
              tagname,
              python_version,
              workdir=workdir,
              install_cmd=install_cmd,
          )
      else:
          print("Build skipped")
      test(tagname, test_cmd)
  
imports: import os
  from typing import List, Optional
  import fire
  import subprocess
label_desc: Use image node_id 3 for calling a global function with example usage: main(python_version, package, dockerfile_ext, install_cmd, no_build) without return types