code: func (s SearchIndex) FindByInventoryPath(ctx context.Context, path string) (Reference, error) {
  	req := types.FindByInventoryPath{
  		This:          s.Reference(),
  		InventoryPath: path,
  	}
  
  	res, err := methods.FindByInventoryPath(ctx, s.c, &req)
  	if err != nil {
  		return nil, err
  	}
  
  	if res.Returnval == nil {
  		return nil, nil
  	}
  	return NewReference(s.c, *res.Returnval), nil
  }
docs: // FindByInventoryPath finds a managed entity based on its location in the inventory.