code: def run_up(args):
      def check_startup_success():
          import requests
  
          server_path = "http://{}:{}{}".format(
              args["--host"], args["--port"], args["--base-path"]
          )
          status_api = f"{server_path}/api/projects/status"
          retry_count = 5
          sleep_interval = 1
          for _ in range(retry_count):
              try:
                  response = requests.get(status_api)
                  if response.status_code == 200:
                      return True
              except Exception:
                  pass
              sleep_interval += 1
              time.sleep(sleep_interval)
  
          return False
  
      args_list = ["--log-level=error"]
      for p in args.keys():
          if p != "--proxy-url":
              args_list.append(p + "=" + args[p])
  
      child_process = subprocess.Popen(
          ["aim", UP_NAME] + args_list + ["--force-init"],
          stderr=subprocess.PIPE,
          stdout=subprocess.PIPE,
      )
      # Runs `aim up <args>` command
      info = {
          "port": args["--port"],
          "host": "http://" + args["--host"],
      }
  
      if check_startup_success():
          return ManagerActionResult(
              ManagerActionStatuses.Succeed, info
          )
  
      for line in child_process.stderr:
          if ERROR_MSG_PREFIX in line.decode():
              return ManagerActionResult(
                  ManagerActionStatuses.Failed,
                  {"message": line.decode()},
              )
  
      return ManagerActionResult(
          ManagerActionStatuses.Failed,
          {
              "message": "\nPerhaps this is a bug from aim side."
              "\nPlease open an issue https://github.com/aimhubio/aim/issues."
          },
      )
  
file_path: aim/aim/cli/manager/manager.py
imports: import subprocess
  import time
  import enum
  from aim.cli.configs import VERSION_NAME, UP_NAME
  from aim.__version__ import __version__
label_desc: Use image node_id 1 for calling a global function with example usage: run_up(args) and returns: ManagerActionResult, False, ManagerActionResult, ManagerActionResult, True