code: def remote_status(ctx, algo_id, data_output, log_output):
      """
      Get the status of a running algorithm on the cloud
      """
      if algo_id is None:
          ctx.fail(
              "must specify an id of your running algorithm with '--id'"
          )
  
      status_response = get_remote_status(algo_id=algo_id)
      if isinstance(status_response, tuple):
          status, perf, log = status_response
  
          if log_output == "-":
              click.echo(str(log), sys.stderr)
          elif log_output != os.devnull:
              with open(log_output, "w") as file:
                  file.write(log)
  
          if perf is not None:
              if data_output == "-":
                  click.echo(
                      "the performance data is:\n" + str(perf),
                      sys.stdout,
                  )
              elif data_output != os.devnull:
                  # make the catalyst magic not write any data
                  perf.to_pickle(data_output)
          print(status)
          return status, perf
      else:
          print(status_response)
          return status_response
  
imports: import errno
  import os
  from functools import wraps
  import re
  import click
  import sys
  import logbook
  import pandas
  from catalyst.marketplace.marketplace import Marketplace
  from six import text_type
  from catalyst.data import bundles
  from catalyst.exchange.exchange_bundle import ExchangeBundle
  from catalyst.exchange.utils.exchange_utils import delete_algo_folder
  from catalyst.utils.cli import Date, Timestamp
  from catalyst.utils.run_algo import _run, load_extensions
  from catalyst.exchange.utils.bundle_utils import EXCHANGE_NAMES
  from catalyst.utils.remote import remote_backtest, get_remote_status
label_desc: Use image node_id 8 for calling a global function with example usage: remote_status(ctx, algo_id, data_output, log_output) and returns: status,  perf, status_response