code: def visit_Import(self, node):
      line = "import {}".format(self._import_names(node.names))
      if self._import_asnames(node.names) != "":
          line += " as {}".format(self._import_asnames(node.names))
      self.line_numbers.append(node.lineno)
      self.lines.append(line)
  
imports: import ast
  import re
  import warnings
  from operator import attrgetter
  from hyperopt import space_eval
label_desc: Use image node_id 2 for calling the ImportParser obj's underlying member method code with example usage: obj.visit_Import(node) without return types