def get_name_from_globals(self, name: str, globals: Mapping[(str, Any)]) -> Value:
    if (name in globals):
        return KnownValue(globals[name])
    elif hasattr(builtins, name):
        return KnownValue(getattr(builtins, name))
    return self.handle_undefined_name(name)
def get_name_from_globals(self, name: str, globals: Mapping[(str, Any)]) -> Value:
    if (name in globals):
        return KnownValue(globals[name])
    elif hasattr(builtins, name):
        return KnownValue(getattr(builtins, name))
    return self.handle_undefined_name(name)