code: func (dc *Datacenter) GetResourcePool(ctx context.Context, resourcePoolPath string) (*object.ResourcePool, error) {
  	finder := getFinder(dc)
  	var resourcePool *object.ResourcePool
  	var err error
  	resourcePool, err = finder.ResourcePoolOrDefault(ctx, resourcePoolPath)
  	if err != nil {
  		klog.Errorf("Failed to get the ResourcePool for path '%s'. err: %+v", resourcePoolPath, err)
  		return nil, err
  	}
  	return resourcePool, nil
  }
docs: // GetResourcePool gets the resource pool for the given path