code: def test_send_images_in_smaller_batches(self):
      # and
      value = "base64Image=="
      channels_values = [
          ChannelValue(
              x=i,
              y={
                  "image_value": {
                      "data": value
                      + value
                      * int(
                          self._IMAGES_BATCH_IMAGE_SIZE / (len(value))
                      )
                  }
              },
              ts=self._TS + i,
          )
          for i in range(0, self._IMAGES_BATCH_SIZE * 3)
      ]
      # and
      channels_values_sender = ChannelsValuesSender(
          experiment=self._EXPERIMENT
      )
  
      # when
      for channel_value in channels_values:
          channels_values_sender.send(
              self._IMAGE_CHANNEL.name,
              self._IMAGE_CHANNEL.channelType,
              channel_value,
          )
      # and
      channels_values_sender.join()
  
      # then
      self.assertEqual(
          self._EXPERIMENT._send_channels_values.mock_calls,
          [
              mock.call._send_channels_values(
                  [
                      ChannelIdWithValues(
                          channel_id=self._IMAGE_CHANNEL.id,
                          channel_name=self._IMAGE_CHANNEL.name,
                          channel_type=self._IMAGE_CHANNEL.channelType,
                          channel_namespace=ChannelNamespace.USER,
                          channel_values=channels_values[
                              0 : self._IMAGES_BATCH_SIZE
                          ],
                      )
                  ]
              ),
              mock.call._send_channels_values(
                  [
                      ChannelIdWithValues(
                          channel_id=self._IMAGE_CHANNEL.id,
                          channel_name=self._IMAGE_CHANNEL.name,
                          channel_type=self._IMAGE_CHANNEL.channelType,
                          channel_namespace=ChannelNamespace.USER,
                          channel_values=channels_values[
                              self._IMAGES_BATCH_SIZE : self._IMAGES_BATCH_SIZE
                              * 2
                          ],
                      )
                  ]
              ),
              mock.call._send_channels_values(
                  [
                      ChannelIdWithValues(
                          channel_id=self._IMAGE_CHANNEL.id,
                          channel_name=self._IMAGE_CHANNEL.name,
                          channel_type=self._IMAGE_CHANNEL.channelType,
                          channel_namespace=ChannelNamespace.USER,
                          channel_values=channels_values[
                              self._IMAGES_BATCH_SIZE * 2 :
                          ],
                      )
                  ]
              ),
          ],
      )
  
file_path: neptune-client/tests/unit/neptune/legacy/internal/channels/test_channels_values_sender.py
imports: from __future__ import unicode_literals
  import threading
  import time
  import unittest
  import mock
  from neptune.legacy.internal.channels.channels import ChannelIdWithValues, ChannelNamespace, ChannelType, ChannelValue
  from neptune.legacy.internal.channels.channels_values_sender import ChannelsValuesSender, ChannelsValuesSendingThread
  from tests.unit.neptune.legacy.experiments_object_factory import a_channel
label_desc: Use image node_id 5 for calling the TestChannelsValuesSender obj's underlying member method code with example usage: obj.test_send_images_in_smaller_batches() without return types