code: def test_get_residuals(self):
      data_len = 10
  
      target = [i for i in range(data_len)]
      all_residuals, mean = get_naive_residuals(pd.DataFrame(target))
      self.assertEqual(all_residuals, [i for i in range(1, data_len)])
      self.assertEqual(mean, np.mean([i for i in range(1, data_len)]))
  
      target = [0 for _ in range(data_len)]
      all_residuals, mean = get_naive_residuals(pd.DataFrame(target))
      self.assertEqual(
          all_residuals, [0.0 for _ in range(data_len - 1)]
      )
      self.assertEqual(mean, 0)
  
      target = [1, 4, 2, 5, 3]
      all_residuals, mean = get_naive_residuals(pd.DataFrame(target))
      self.assertEqual(all_residuals, [3.0, 1.0, 4.0, 2.0])
      self.assertEqual(mean, np.mean([3.0, 1.0, 4.0, 2.0]))
  
imports: import unittest
  import numpy
  import pandas
  from lightwood.data.timeseries_analyzer import get_naive_residuals
label_desc: Use image node_id 1 for calling the TestTransformTS obj's underlying member method code with example usage: obj.test_get_residuals() without return types