code: func (r *RemoteRuntimeService) ListContainers(filter *runtimeapi.ContainerFilter) ([]*runtimeapi.Container, error) {
  	ctx, cancel := getContextWithTimeout(r.timeout)
  	defer cancel()
  
  	resp, err := r.runtimeClient.ListContainers(ctx, &runtimeapi.ListContainersRequest{
  		Filter: filter,
  	})
  	if err != nil {
  		klog.Errorf("ListContainers with filter %+v from runtime service failed: %v", filter, err)
  		return nil, err
  	}
  
  	return resp.Containers, nil
  }
docs: // ListContainers lists containers by filters.