code: def get_build_env():
      if os.environ.get("GITHUB_ACTION"):
          return {
              "TRAVIS_COMMIT": os.environ["GITHUB_SHA"],
              "TRAVIS_JOB_WEB_URL": gha_get_self_url(),
              "TRAVIS_OS_NAME": "windows",
          }
  
      if os.environ.get("BUILDKITE"):
          return {
              "TRAVIS_COMMIT": os.environ["BUILDKITE_COMMIT"],
              "TRAVIS_JOB_WEB_URL": (
                  os.environ["BUILDKITE_BUILD_URL"]
                  + "#"
                  + os.environ["BUILDKITE_JOB_ID"]
              ),
              "TRAVIS_OS_NAME": {  # The map is used to stay consistent with Travis
                  "linux": "linux",
                  "darwin": "osx",
                  "win32": "windows",
              }[
                  sys.platform
              ],
          }
  
      keys = [
          "TRAVIS_COMMIT",
          "TRAVIS_JOB_WEB_URL",
          "TRAVIS_OS_NAME",
      ]
      return {key: os.environ.get(key) for key in keys}
  
imports: import os
  import sys
  import json
label_desc: Use image node_id 2 for calling a global function with example usage: get_build_env() and returns: unknown, dict, dict