original_docstring: 
      Utility function to extract the module name from the given frame,
      and to return a dictionary containing globals and locals merged together
  
      :param frame:
      :return:
      
docstring: Utility function to extract the module name from the given frame,
  and to return a dictionary containing globals and locals merged together
docstring_tokens: Utility function to extract the module name from the given frame and to return a dictionary containing globals and locals merged together
code: def extract_module_and_evaldict(frame):
      """
      Utility function to extract the module name from the given frame,
      and to return a dictionary containing globals and locals merged together
  
      :param frame:
      :return:
      """
      try:
          # get the module name
          module_name = frame.f_globals.get('__name__', '?')
  
          # construct a dictionary with all variables
          # this is required e.g. if a symbol is used in a type hint
          evaldict = copy(frame.f_globals)
          evaldict.update(frame.f_locals)
  
      except AttributeError:
          # either the frame is None of the f_globals and f_locals are not available
          module_name = '?'
          evaldict = dict()
  
      return evaldict, module_name
code_tokens: def extract_module_and_evaldict ( frame ) : try : module_name = frame . f_globals . get ( '__name__' , '?' ) evaldict = copy ( frame . f_globals ) evaldict . update ( frame . f_locals ) except AttributeError : module_name = '?' evaldict = dict ( ) return evaldict , module_name
short_docstring: Utility function to extract the module name from the given frame,
  and to return a dictionary containing globals and locals merged together
short_docstring_tokens: Utility function to extract the module name from the given frame and to return a dictionary containing globals and locals merged together
comment: """
      Utility function to extract the module name from the given frame,
      and to return a dictionary containing globals and locals merged together
  
      :param frame:
      :return:
      """$SEP$# get the module name$SEP$# construct a dictionary with all variables$SEP$# this is required e.g. if a symbol is used in a type hint$SEP$# either the frame is None of the f_globals and f_locals are not available