parameters: (files)
return_statement: return max_file
docstring: Returns file with maximum version at a) beggining of the file,
      e.g. DQM_V000M b) at the end of run, e.g. _run2012-vM. M has to be max.
docstring_summary: Returns file with maximum version at a) beggining of the file,
      e.g. DQM_V000M b) at the end of run, e.g. _run2012-vM. M has to be max.
docstring_tokens: Returns file with maximum version at a ) beggining of the file e . g . DQM_V000M b ) at the end of run e . g . _run2012 - vM . M has to be max .
function: def get_relval_max_version(files):
      """Returns file with maximum version at a) beggining of the file,
      e.g. DQM_V000M b) at the end of run, e.g. _run2012-vM. M has to be max."""
      max_file = files[0]
      max_v = get_relval_version(files[0])
      for file in files:
          file_v = get_relval_version(file)
          if file_v[1] > max_v[1] or ((file_v[1] == max_v[1]) and (file_v[0] > max_v[0])):
              max_file = file
              max_v = file_v
      return max_file
function_tokens: def get_relval_max_version ( files ) : max_file = files [ 0 ] max_v = get_relval_version ( files [ 0 ] ) for file in files : file_v = get_relval_version ( file ) if file_v [ 1 ] > max_v [ 1 ] or ( ( file_v [ 1 ] == max_v [ 1 ] ) and ( file_v [ 0 ] > max_v [ 0 ] ) ) : max_file = file max_v = file_v return max_file