code: def get_file_out(build_index, python_name, jenkin_name):
      """
      This function will grab one log file from Jenkins and save it to local user directory
      :param g_jenkins_url:
      :param build_index:
      :param airline_java:
      :param airline_java_tail:
      :return:
      """
      global g_log_base_dir
      global g_jenkins_url
      global g_log_base_dir
  
      directoryB = g_log_base_dir + "/Build" + str(build_index)
  
      if not (
          os.path.isdir(directoryB)
      ):  # make directory if it does not exist
          os.mkdir(directoryB)
  
      url_string_full = (
          g_jenkins_url + "/" + str(build_index) + jenkin_name
      )
      filename = os.path.join(directoryB, python_name)
  
      full_command = "curl " + url_string_full + " > " + filename
      subprocess.call(full_command, shell=True)
  
imports: import sys
  import os
  import json
  import pickle
  import copy
  import subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: get_file_out(build_index, python_name, jenkin_name) without return types