code: func IsNetworkAvailable(c client.NetworkAPIClient, name string) cmp.Comparison {
  	return func() cmp.Result {
  		networks, err := c.NetworkList(context.Background(), types.NetworkListOptions{})
  		if err != nil {
  			return cmp.ResultFromError(err)
  		}
  		for _, network := range networks {
  			if network.Name == name {
  				return cmp.ResultSuccess
  			}
  		}
  		return cmp.ResultFailure(fmt.Sprintf("could not find network %s", name))
  	}
  }
docs: // IsNetworkAvailable provides a comparison to check if a docker network is available