code: def test_continuous_target_beta(self):
      X = np.array(["a", "b", "b", "c"])
      y = np.array([-10, 0, 0, 10])
      out = encoders.JamesSteinEncoder(
          return_df=False, model="beta"
      ).fit_transform(X, y)
      self.assertEqual(
          [-2, 0, 0, 2],
          list(out),
          "The model assumes normal distribution -> we support real numbers",
      )
  
imports: from unittest import TestCase
  import numpy
  import category_encoders
label_desc: Use image node_id 9 for calling the TestJamesSteinEncoder obj's underlying member method code with example usage: obj.test_continuous_target_beta() without return types