docstr: Return a tuple of globals in the function.
          
docstr_tok: ["Return","a","tuple","of","globals","in","the","function","."]
code: def get_globals(self):
      """Return a tuple of globals in the function."""
      if self.__globals is None:
          glob = (GLOBAL_IMPLICIT, GLOBAL_EXPLICIT)
          test = lambda x: ((x >> SCOPE_OFF) & SCOPE_MASK) in glob
          self.__globals = self.__idents_matching(test)
      return self.__globals
  
imports: import _symtable
  from _symtable import USE, DEF_GLOBAL, DEF_NONLOCAL, DEF_LOCAL, DEF_PARAM, DEF_IMPORT, DEF_BOUND, DEF_ANNOT, SCOPE_OFF, SCOPE_MASK, FREE, LOCAL, GLOBAL_IMPLICIT, GLOBAL_EXPLICIT, CELL
  import weakref
label_desc: Use image node_id 4 for calling the Function obj's underlying member method code with example usage: obj.get_globals() and returns: self