code: def test_until(self):
      en = empirical_normalization.EmpiricalNormalization(7, until=20)
      last_mean = None
      last_std = None
      for t in range(15):
          en(torch.tensor(np.random.rand(2, 7) + t))
  
          if 1 <= t < 10:
              self.assertFalse(
                  np.allclose(
                      en.mean.cpu().numpy(), last_mean, rtol=1e-4
                  )
              )
              self.assertFalse(
                  np.allclose(en.std.cpu().numpy(), last_std, rtol=1e-4)
              )
          elif t >= 10:
              np.testing.assert_allclose(
                  en.mean.cpu().numpy(), last_mean, rtol=1e-4
              )
              np.testing.assert_allclose(
                  en.std.cpu().numpy(), last_std, rtol=1e-4
              )
  
          last_mean = en.mean
          last_std = en.std
  
file_path: pfrl/tests/nn_tests/test_empirical_normalization.py
imports: import unittest
  import numpy
  import pytest
  import torch
  from pfrl.nn import empirical_normalization
label_desc: Use image node_id 6 for calling the TestEmpiricalNormalization obj's underlying member method code with example usage: obj.test_until() without return types