code: def test_array_resize(self):
      self.assertEqual(
          array_resize(array=[1, 2, 3, 4, 5], length=2), [1, 2]
      )
      self.assertEqual(
          array_resize(array=[1, 2, 3, 4, 5], length=2, array_len=5),
          [1, 2],
      )
      self.assertEqual(
          array_resize(array=[1, 2], length=5, array_len=2),
          [1, 2, 1, 2, 1],
      )
      # when a tuple is passed
      self.assertEqual(
          array_resize(array=(1, 2), length=5, array_len=2),
          (1, 2, 1, 2, 1),
      )
  
file_path: PyWaffle/tests/test_utilities.py
imports: import unittest
  from pywaffle.waffle import array_resize, division, flip_lines, round_up_to_multiple
label_desc: Use image node_id 1 for calling the TestUtilities obj's underlying member method code with example usage: obj.test_array_resize() without return types