code: def get_extract_command_template(filename):
    
    for k, v in iteritems(EXTRACT_COMMAND):
      if filename.endswith(k):
        return v
    return None
docs: Returns extraction command based on the filename extension.