code: def adjust_lineno(filename, lineno, name):
      
      line = linecache.getline(filename, lineno)
      # Hack warning: might be fooled by comments
      rx = re.compile(r'\b%s\b' % re.escape(name) if name != '*' else '[*]')
      while line and not rx.search(line):
          lineno += 1
          line = linecache.getline(filename, lineno)
      return lineno
docs: Adjust the line number of an import.
  
      Needed because import statements can span multiple lines, and our lineno
      is always the first line number.