code: def test_add(client):
      assert 1 == client.ts().add(1, 1, 1)
      assert 2 == client.ts().add(2, 2, 3, retention_msecs=10)
      assert 3 == client.ts().add(3, 3, 2, labels={"Redis": "Labs"})
      assert 4 == client.ts().add(
          4,
          4,
          2,
          retention_msecs=10,
          labels={"Redis": "Labs", "Time": "Series"},
      )
  
      assert (
          abs(time.time() - float(client.ts().add(5, "*", 1)) / 1000)
          < 1.0
      )
  
      info = client.ts().info(4)
      assert_resp_response(
          client,
          10,
          info.get("retention_msecs"),
          info.get("retentionTime"),
      )
      assert "Labs" == info["labels"]["Redis"]
  
      # Test for a chunk size of 128 Bytes on TS.ADD
      assert client.ts().add("time-serie-1", 1, 10.0, chunk_size=128)
      info = client.ts().info("time-serie-1")
      assert_resp_response(
          client, 128, info.get("chunk_size"), info.get("chunkSize")
      )
  
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 6 for calling a global function with example usage: test_add(client) without return types