def parse(owners_lines):
    """
    takes a list of lines from a OWNERS text file and returns a list of
    :param owners_lines: a list of strings, one for each line of a OWNERS file
    :return: list of (ID, glob) tuples, where glob can be None
    """
    results = []
    for owner_line in owners_lines:
        if owner_line.startswith('@'):
            owner_line = owner_line[1:]
        owner_line = owner_line.strip()
        if not owner_line:
            continue
        if owner_line.startswith('#'):
            continue
        if ' ' in owner_line:
            result = tuple(owner_line.split(' ', 1))
        else:
            result = owner_line, None
        results.append(result)
    return results
