def METHOD_NAME(from_name, to_name, fromlist):
    if not is_relevant_import(from_name) or not is_relevant_import(to_name):
        return
    if sys.modules.get(to_name) is not None and sys.modules.get(from_name) is not None:
        if to_name not in import_order:
            import_order.append(to_name)
        observations.add((from_name, to_name))
        for name in fromlist or ():
            potential_module_name = to_name + "." + name
            if sys.modules.get(potential_module_name) is not None:
                observations.add((from_name, potential_module_name))