code: def test_right_squeeze():
      x = np.empty((10, 1, 10))
      y = _right_squeeze(x)
      assert y.shape == (10, 1, 10)
  
      x = np.empty((10, 10, 1))
      y = _right_squeeze(x)
      assert y.shape == (10, 10)
  
      x = np.empty((10, 10, 1, 1, 1, 1, 1))
      y = _right_squeeze(x)
      assert y.shape == (10, 10)
  
      x = np.empty((10, 1, 10, 1, 1, 1, 1, 1))
      y = _right_squeeze(x)
      assert y.shape == (10, 1, 10)
  
imports: from collections import OrderedDict
  import numpy
  import pandas
  import pytest
  from statsmodels.tools.validation import array_like, PandasWrapper, bool_like, dict_like, float_like, int_like, string_like
  from statsmodels.tools.validation.validation import _right_squeeze
label_desc: Use image node_id 3 for calling a global function with example usage: test_right_squeeze() without return types