code: def wsl2_disable_auto_hosts() -> None:
      if not Platform.wsl2():
          return
  
      # stdlib
      import configparser
  
      conf_path = Path("/etc/wsl.conf")
      conf = configparser.ConfigParser()
      conf.optionxform = str
      conf.read(conf_path)
  
      if "network" not in conf:
          conf["network"] = {}
  
      if conf["network"]["generateHosts"] != "false":
          conf["network"]["generateHosts"] = "false"
          with conf_path.open("w") as fp:
              conf.write(fp)
  
imports: import argparse
  from functools import cached_property
  import os
  from pathlib import Path
  import platform
  import re
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: wsl2_disable_auto_hosts() without return types