'Return the appropriate set of autocomplete completions for
the given element. Typically this is just one, but can be more for
\'*\'-imports'

def _members_from_elem(self, elem, name_prefix=''):

    members = set()
    tag = elem.tag
    if (tag == 'import'):
        module_name = elem.get('module')
        cpln_name = module_name.split('.', 1)[0]
        members.add(('module', cpln_name))
    elif (tag == 'alias'):
        members.add(('function', (name_prefix + elem.get('name'))))
    else:
        members.add(((elem.get('ilk') or tag), (name_prefix + elem.get('name'))))
    return members
