code: def init_module(go_module_name: str, go_module_path: str) -> None:
      """Initialize a Go module.
  
      If a ``go.mod`` file already exists, this function will do nothing.
  
      :param go_module_name: The name of the Go module to initialize.
      :param go_module_path: The path to the directory containing the Go module.
      """
      if os.path.isfile(os.path.join(go_module_path, "go.mod")):
          return
      go_mod_init_cmd = ["go", "mod", "init", go_module_name]
      execute_in_subprocess(go_mod_init_cmd, cwd=go_module_path)
  
imports: from __future__ import annotations
  import os
  from airflow.utils.process_utils import execute_in_subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: init_module(go_module_name, go_module_path) without return types