def print_issues_by_uri(uri_dict, save_fp=''):
    """Print a tab-delimited list of uris with the issues connected to them.
    URI     Issue number    Issue label

    Args:
        uri_dict (dict): key: uri,
                         value: list of github issues related to this uri

    Returns:
        None
    """
    s = '{}\t{}\t{}\t{}\n'.format('URI', 'Issue number', 'Issue label',
        'Issue state')
    for uri, issues in sorted(uri_dict.items()):
        for issue in issues:
            for label in issue.labels:
                s += '{}\t{}\t{}\t{}\n'.format(uri, issue.number, label.
                    name, issue.state)
    if save_fp:
        print('Saved list of issues to', save_fp)
        with open(save_fp, mode='w', encoding='utf-8') as file:
            file.write(s)
    else:
        print(s)
