code: def update_ios_demo(languages):
      scheme_dir = os.path.join(
          os.path.dirname(__file__),
          "../../demo/ios/ForegroundApp/PorcupineForegroundAppDemo.xcodeproj/xcshareddata/xcschemes",
      )
      base_scheme = os.path.join(
          os.path.dirname(__file__), scheme_dir, "_enDemo.xcscheme"
      )
  
      for language in languages:
          if language == "en":
              continue
  
          language_scheme = os.path.join(
              scheme_dir, f"{language}Demo.xcscheme"
          )
          if not os.path.exists(language_scheme):
              print(f"Creating iOS demo scheme for `{language}`")
              base_scheme_content = minidom.parse(base_scheme)
              pre_build_action = (
                  base_scheme_content.getElementsByTagName(
                      "ActionContent"
                  )[0]
              )
              env_var = base_scheme_content.getElementsByTagName(
                  "EnvironmentVariable"
              )[0]
              pre_build_action.setAttribute(
                  "scriptText",
                  pre_build_action.attributes[
                      "scriptText"
                  ].value.replace(" en", f" {language}"),
              )
              env_var.setAttribute("value", language)
              with open(
                  os.path.join(scheme_dir, f"{language}Demo.xcscheme"),
                  "w",
              ) as f:
                  f.write(base_scheme_content.toxml())
          else:
              print(f"iOS scheme for `{language}` already exists")
  
imports: import json
  import os
  from xml.dom import minidom
label_desc: Use image node_id 1 for calling a global function with example usage: update_ios_demo(languages) without return types