def build_recursive_localize_env(destination, inputs):
export_input_dirs = '<STR_LIT:\n>'.join([<EOL>'<STR_LIT>'.format(var.name, destination.rstrip('<STR_LIT:/>'),<EOL>var.docker_path.rstrip('<STR_LIT:/>'))<EOL>for var in inputs<EOL>if var.recursive and var.docker_path<EOL>])<EOL>return export_input_dirs<EOL>
Return a multi-line string with export statements for the variables.

    Arguments:
      destination: Folder where the data will be put.
                   For example /mnt/data
      inputs: a list of InputFileParam

    Returns:
      a multi-line string with a shell script that sets environment variables
      corresponding to the inputs.