'Transform for calls to module members in code.'

def transform_dot(self, node, results):

    module_dot = results.get('bare_with_attr')
    member = results.get('member')
    new_name = None
    if isinstance(member, list):
        member = member[0]
    for change in MAPPING[module_dot.value]:
        if (member.value in change[1]):
            new_name = change[0]
            break
    if new_name:
        module_dot.replace(Name(new_name, prefix=module_dot.prefix))
    else:
        self.cannot_convert(node, 'This    is    an    invalid    module    element')
    return
