code: func hasUserDefinedIPAddress(ipamConfig *networktypes.EndpointIPAMConfig) bool {
  	return ipamConfig != nil && (len(ipamConfig.IPv4Address) > 0 || len(ipamConfig.IPv6Address) > 0)
  }
docs: // hasUserDefinedIPAddress returns whether the passed IPAM configuration contains IP address configuration