docs: def import_obj_from_str(s):
      """Returns an import object (either ImportImport or FromImport) from text.
      """
      ast_obj = ast.parse(s).body[0]
      return ast_type_to_import_type[type(ast_obj)](ast_obj)