code: def NameImport(package, as_name=None, prefix=None):
      
      if prefix is None:
          prefix = u""
      children = [Name(u"import", prefix=prefix), package]
      if as_name is not None:
          children.extend([Name(u"as", prefix=u" "),
                           Name(as_name, prefix=u" ")])
      return Node(syms.import_name, children)
docs: Accepts a package (Name node), name to import it as (string), and
      optional prefix and returns a node:
      import <package> [as <as_name>]