code: def test_hdr_ncomp(close_figures):
      try:
          _, hdr = hdrboxplot(data, ncomp=3, seed=12345)
          median_t = [
              24.33,
              25.71,
              26.04,
              25.08,
              23.74,
              22.40,
              21.32,
              20.45,
              20.25,
              20.53,
              21.20,
              22.39,
          ]
          assert_almost_equal(hdr.median, median_t, decimal=2)
      except OSError:
          pytest.xfail(
              "Multiprocess randomly crashes in Windows testing"
          )
  
file_path: statsmodels/statsmodels/graphics/tests/test_functional.py
imports: import numpy
  from numpy.testing import assert_almost_equal, assert_equal
  import pytest
  from statsmodels.datasets import elnino
  from statsmodels.graphics.functional import banddepth, fboxplot, hdrboxplot, rainbowplot
label_desc: Use image node_id 8 for calling a global function with example usage: test_hdr_ncomp(close_figures) without return types