code: def test_paginate_endpoint_empty(self):
      def some_function(page_size=8, page_offset=0):
          return []
  
      some_iterator = paginate_endpoint(some_function, page_size=8)
      some_list = list(some_iterator)
      self.assertEqual(some_list, [])
  
file_path: lightly/tests/api/test_utils.py
imports: import os
  import unittest
  from unittest import mock
  import pytest
  from PIL import Image
  from lightly.api.utils import DatasourceType, PIL_to_bytes, get_lightly_server_location_from_env, get_signed_url_destination, getenv, paginate_endpoint, retry
label_desc: Use image node_id 11 for calling the TestUtils obj's underlying member method code with example usage: obj.test_paginate_endpoint_empty() and returns: list