code: def global_state(self):
          
          self._generate_func_code()
  
          return dict(
              REGEX_PATTERNS=self._compile_regexps,
              re=re,
              JsonSchemaException=JsonSchemaException,
          )
docs: Returns global variables for generating function from ``func_code``. Includes
          compiled regular expressions and imports, so it does not have to do it every
          time when validation function is called.