code: def test_range_empty(client: redis.Redis):
      timeseries = client.ts()
      timeseries.create("t1")
      timeseries.add("t1", 15, 1)
      timeseries.add("t1", 17, 4)
      timeseries.add("t1", 51, 3)
      timeseries.add("t1", 73, 5)
      timeseries.add("t1", 75, 3)
      assert_resp_response(
          client,
          timeseries.range(
              "t1",
              0,
              100,
              align=0,
              aggregation_type="max",
              bucket_size_msec=10,
          ),
          [(10, 4.0), (50, 3.0), (70, 5.0)],
          [[10, 4.0], [50, 3.0], [70, 5.0]],
      )
      res = timeseries.range(
          "t1",
          0,
          100,
          align=0,
          aggregation_type="max",
          bucket_size_msec=10,
          empty=True,
      )
      for i in range(len(res)):
          if math.isnan(res[i][1]):
              res[i] = (res[i][0], None)
      resp2_expected = [
          (10, 4.0),
          (20, None),
          (30, None),
          (40, None),
          (50, 3.0),
          (60, None),
          (70, 5.0),
      ]
      resp3_expected = [
          [10, 4.0],
          (20, None),
          (30, None),
          (40, None),
          [50, 3.0],
          (60, None),
          [70, 5.0],
      ]
      assert_resp_response(client, res, resp2_expected, resp3_expected)
  
imports: import math
  import time
  from time import sleep
  import pytest
  import redis
  from .conftest import assert_resp_response, is_resp2_connection, skip_ifmodversion_lt
label_desc: Use image node_id 16 for calling a global function with example usage: test_range_empty(client) without return types