def METHOD_NAME(monkeypatch):
    # given
    valid_image_response_mock = Mock()
    valid_image_response_mock.headers = {"content-type": "image/jpeg"}
    monkeypatch.setattr(
        HTTPSession,
        "request",
        Mock(return_value=valid_image_response_mock),
    )
    field = "image"
    # when
    dummy_url = "http://example.com/valid_url.jpg"
    # then
    validate_image_url(
        dummy_url,
        field,
        ProductErrorCode.INVALID.value,
    )