code: def test_get_rdataset():
      test_url = (
          "https://raw.githubusercontent.com/vincentarelbundock/"
          "Rdatasets/master/csv/datasets/cars.csv"
      )
      internet_available = check_internet(test_url)
      if not internet_available:  # pragma: no cover
          pytest.skip("Unable to retrieve file - skipping test")
      try:
          duncan = get_rdataset("Duncan", "carData", cache=cur_dir)
      except IGNORED_EXCEPTIONS:
          pytest.skip(
              "Failed with HTTPError or URLError, these are random"
          )
      assert_(isinstance(duncan, utils.Dataset))
      duncan = get_rdataset("Duncan", "carData", cache=cur_dir)
      assert_(duncan.from_cache)
  
file_path: statsmodels/statsmodels/datasets/tests/test_utils.py
imports: import os
  from ssl import SSLError
  from socket import timeout
  from urllib.error import HTTPError, URLError
  import numpy
  from numpy.testing import assert_, assert_array_equal
  import pytest
  from statsmodels.datasets import get_rdataset, webuse, check_internet, utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_rdataset() without return types