code: def patch_config(
      config_file: str,
      base_url: str = None,
      disable_algolia: bool = True,
  ) -> None:
      config = open(config_file, "r").read()
  
      if base_url is not None:
          config = re.sub(
              "baseUrl = '/';",
              "baseUrl = '{}';".format(base_url),
              config,
          )
      if disable_algolia is True:
          config = re.sub(
              "const includeAlgolia = true;",
              "const includeAlgolia = false;",
              config,
          )
  
      with open(config_file, "w") as outfile:
          outfile.write(config)
  
imports: from __future__ import annotations
  import argparse
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: patch_config(config_file, base_url, disable_algolia) without return types