def build_mount_env(source, mounts):
return '<STR_LIT:\n>'.join([<EOL>'<STR_LIT>'.format(var.name, source.rstrip('<STR_LIT:/>'),<EOL>var.docker_path.rstrip('<STR_LIT:/>')) for var in mounts<EOL>])<EOL>
Return a multi-line string with export statements for the variables.

    Arguments:
      source: Folder with the data. For example /mnt/data
      mounts: a list of MountParam

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