'Get a {name: value} map of the globals used by this code
object and any nested code objects.'

def get_used_globals(self):

    return self._compute_used_globals(self.func_id.func, self.table, self.co_consts, self.co_names)
