def _getcontextrange(context, config):
    """Return the range of the input context, including the file path.

    Return format:
    [filepath, line_start, line_end]
    """
    file_i = context['_range']['begin']['file']
    filepath = config['_files'][file_i]
    line_start = context['_range']['begin']['line'][0]
    line_end = context['_range']['end']['line'][0]
    return [filepath, line_start, line_end]