'Gives a ForeignStruct implementation or None'

def _import_foreign(self):

    struct_info = self.type.get_interface()
    assert isinstance(struct_info, GIStructInfo)
    if (not struct_info.is_foreign):
        return
    return foreign.get_foreign(struct_info.namespace, struct_info.name)
