code: def remote_backtest(
      initialize,
      handle_data,
      before_trading_start,
      analyze,
      algofile,
      algotext,
      defines,
      data_frequency,
      capital_base,
      data,
      bundle,
      bundle_timestamp,
      start,
      end,
      output,
      print_algo,
      local_namespace,
      environ,
      live,
      exchange,
      algo_namespace,
      quote_currency,
      live_graph,
      analyze_live,
      simulate_orders,
      auth_aliases,
      stats_output,
      mail,
  ):
      if algotext or algofile:
          # argument preparation - encode the file for transfer
          algofile, algotext = prepare_args(algofile, algotext)
  
      json_file = {
          "arguments": {
              "initialize": initialize,
              "handle_data": handle_data,
              "before_trading_start": before_trading_start,
              "analyze": analyze,
              "algotext": algotext,
              "defines": defines,
              "data_frequency": data_frequency,
              "capital_base": capital_base,
              "data": data,
              "bundle": bundle,
              "bundle_timestamp": bundle_timestamp,
              "start": start,
              "end": end,
              "local_namespace": local_namespace,
              "environ": None,
              "analyze_live": analyze_live,
              "stats_output": stats_output,
              "algofile": algofile,
              "output": output,
              "print_algo": print_algo,
              "live": live,
              "exchange": exchange,
              "algo_namespace": algo_namespace,
              "quote_currency": quote_currency,
              "live_graph": live_graph,
              "simulate_orders": simulate_orders,
              "auth_aliases": auth_aliases,
              "mail": mail,
              "py_version": sys.version_info[
                  0
              ],  # the python version running on
              # the client's side. 2 or 3
          }
      }
      response = send_digest_request(
          json_file=json_file, path=BACKTEST_PATH, method=POST
      )
      return handle_response(response, BACKTEST)
  
file_path: catalyst/catalyst/utils/remote.py
imports: import json
  import os
  import sys
  import requests
  from hashlib import md5
  from logbook import Logger
  from catalyst.utils.remote_utils import BACKTEST_PATH, STATUS_PATH, POST, GET, EXCEPTION_LOG, convert_date, prepare_args, handle_status, is_valid_uuid
  from catalyst.exchange.utils.exchange_utils import get_remote_auth, get_remote_folder
  from catalyst.exchange.exchange_errors import RemoteAuthEmpty
label_desc: Use image node_id 2 for calling a global function with example usage: remote_backtest(initialize, handle_data, before_trading_start, analyze, algofile, algotext, defines, data_frequency, capital_base, data, bundle, bundle_timestamp, start, end, output, print_algo, local_namespace, environ, live, exchange, algo_namespace, quote_currency, live_graph, analyze_live, simulate_orders, auth_aliases, stats_output, mail) and returns: handle_response