code: def test_plotting_positions():
      df = load_intermediate_data()
      cohn = load_basic_cohn()
  
      results = ros.plotting_positions(df, "censored", cohn)
      expected = numpy.array(
          [
              0.07414188,
              0.11121281,
              0.14828375,
              0.14828375,
              0.20869565,
              0.34285714,
              0.4173913,
              0.05560641,
              0.11121281,
              0.16681922,
              0.24713959,
              0.27185355,
              0.32652382,
              0.35648013,
              0.38643645,
              0.41639276,
              0.44634907,
              0.47630539,
              0.5062617,
              0.53621802,
              0.56617433,
              0.59613064,
              0.64596273,
              0.66583851,
              0.71190476,
              0.73809524,
              0.76428571,
              0.79047619,
              0.81666667,
              0.84285714,
              0.86904762,
              0.8952381,
              0.92142857,
              0.94761905,
              0.97380952,
          ]
      )
      npt.assert_array_almost_equal(results, expected)
  
imports: from statsmodels.compat.pandas import assert_series_equal, assert_frame_equal
  from io import StringIO
  from textwrap import dedent
  import numpy
  import numpy.testing
  import numpy
  from numpy.testing import assert_equal
  import pandas
  import pytest
  from statsmodels.imputation import ros
label_desc: Use image node_id 7 for calling a global function with example usage: test_plotting_positions() without return types