code: def export(base_key, value):
      if base_key.lower() == "cortex_tags":
          exportTags(value, "CORTEX_TAGS")
          exportTags(
              value,
              "CORTEX_OPERATOR_LOAD_BALANCER_TAGS",
              {"cortex.dev/load-balancer": "operator"},
          )
          exportTags(
              value,
              "CORTEX_API_LOAD_BALANCER_TAGS",
              {"cortex.dev/load-balancer": "api"},
          )
          return
  
      if value is None:
          return
      elif type(value) is list:
          print(
              f'export {base_key.upper()}="{yaml.dump(value, default_flow_style=True).strip()}"'
          )
      elif type(value) is dict:
          for key, child in value.items():
              export(base_key + "_" + key, child)
      else:
          print(f'export {base_key.upper()}="{value}"')
          if base_key.lower().startswith("cortex_image_"):
              hub = value.rsplit("/", 1)[0]
              suffix = value.rsplit("/", 1)[1]
              if ":" in suffix:
                  image = suffix.split(":")[0]
                  tag = suffix.split(":")[1]
              else:
                  image = suffix
                  tag = "latest"
  
              print(f'export {base_key.upper()}_HUB="{hub}"')
              print(f'export {base_key.upper()}_IMAGE="{image}"')
              print(f'export {base_key.upper()}_TAG="{tag}"')
  
imports: import sys
  import yaml
  import json
  from copy import deepcopy
label_desc: Use image node_id 1 for calling a global function with example usage: export(base_key, value) without return types