code: def test_calculate_batched_alpha(self):
      # Test no-transformation
      n_batches = 1
      alpha = 0.01
      self.assertEqual(
          alpha,
          calculate_batched_alpha(num_batches=n_batches, alpha=alpha),
      )
  
      # Test two batches
      n_batches = 2
      alpha = 0.01
      self.assertAlmostEqual(
          0.53074 * alpha,
          calculate_batched_alpha(num_batches=n_batches, alpha=alpha),
          places=5,
      )
  
      # Test a bad number of batches
      with self.assertRaises(ValueError):
          calculate_batched_alpha(num_batches=0, alpha=alpha)
  
imports: from unittest import TestCase
  from tensorrec.util import calculate_batched_alpha
label_desc: Use image node_id 1 for calling the UtilTestcase obj's underlying member method code with example usage: obj.test_calculate_batched_alpha() without return types