code: def test_http_type_request(monkeypatch):
      def _urlretrive(url, _):
          raise ValueError(f"URL Retrieved: {url}")
  
      # Hijack url retrieve to inspect url passed
      monkeypatch.setattr(datasets, "urlretrieve", _urlretrive)
  
      # Test HTTPS default
      with pytest.raises(ValueError) as error:
          datasets.load_arviz_data("radon")
          assert "https://" in str(error)
  
      # Test HTTP setting
      with pytest.raises(ValueError) as error:
          rcParams["data.http_protocol"] = "http"
          datasets.load_arviz_data("radon")
          assert "http://" in str(error)
  
imports: import os
  import numpy
  import pytest
  from xarray.core.indexing import MemoryCachedArray
  from ...data import datasets, load_arviz_data
  from ...rcparams import _make_validate_choice, _make_validate_choice_regex, _validate_float_or_none, _validate_positive_int_or_none, _validate_probability, make_iterable_validator, rc_context, rc_params, rcParams, read_rcfile
  from ...stats import compare
  from ..helpers import models
label_desc: Use image node_id 24 for calling a global function with example usage: test_http_type_request(monkeypatch) without return types