code: def _predictor_from_code(code: str):
      """
      :param code: The ``Predictor``'s code in text form
  
      :returns: A lightwood ``Predictor`` object
      """
      module_name = "".join(
          random.choices(string.ascii_uppercase + string.digits, k=12)
      )
      module_name += str(time.time()).replace(".", "")
      predictor = _module_from_code(code, module_name).Predictor()
      return predictor
  
file_path: lightwood/lightwood/helpers/codegen.py
imports: import os
  import sys
  import time
  import string
  import random
  import tempfile
  import importlib
  from copy import deepcopy
  from types import ModuleType
  from type_infer.dtype import dtype
  from lightwood.helpers.log import log
  from lightwood.api.types import JsonAI
  from lightwood.api.json_ai import add_implicit_values, lookup_encoder
  from lightwood.helpers.constants import IMPORTS, IMPORT_EXTERNAL_DIRS
  from lightwood.helpers.templating import call, inline_dict, align
  from lightwood.__about__ import __version__
label_desc: Use image node_id 3 for calling a global function with example usage: _predictor_from_code(code) and returns: predictor