code: def import_tokens(tokens):
      # XXX Document me
      # import as many as we can
      rval = None
      for i in range(len(tokens)):
          modname = ".".join(tokens[: i + 1])
          # XXX: try using getattr, and then merge with load_tokens
          try:
              logger.info("importing %s" % modname)
              exec(f"import {modname}")
              exec(f"rval = {modname}")
          except ImportError as e:
              logger.info("failed to import %s" % modname)
              logger.info("reason: %s" % str(e))
              break
      return rval, tokens[i:]
  
imports: import datetime
  import numpy
  import logging
  import os
  import shutil
  import sys
  import uuid
  import numpy
  from .None import pyll
  from contextlib import contextmanager
label_desc: Use image node_id 3 for calling a global function with example usage: import_tokens(tokens) and returns: rval,  tokens