code: func ParseImports(input string) ([]*Import, error) {
  	stmts, _, err := ParseStatements("", input)
  	if err != nil {
  		return nil, err
  	}
  	result := []*Import{}
  	for _, stmt := range stmts {
  		if imp, ok := stmt.(*Import); ok {
  			result = append(result, imp)
  		} else {
  			return nil, fmt.Errorf("expected import but got %T", stmt)
  		}
  	}
  	return result, nil
  }
docs: // ParseImports returns a slice of Import objects.