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("import {}".format(modname))
              exec("rval = {}".format(modname))
          except ImportError as e:
              logger.info("failed to import %s" % modname)
              logger.info("reason: %s" % str(e))
              break
      return rval, tokens[i:]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from future import standard_library
  from builtins import str
  from builtins import range
  from past.builtins import basestring
  from past.utils import old_div
  import datetime
  import numpy
  import logging
  import os
  import shutil
  import numpy
  from .None import pyll
  from contextlib import contextmanager
label_desc: Use image node_id 1 for calling a global function with example usage: import_tokens(tokens) and returns: rval,  tokens