code: def test_arrtrim(client):
      client.json().set("arr", Path.root_path(), [0, 1, 2, 3, 4])
      assert 3 == client.json().arrtrim("arr", Path.root_path(), 1, 3)
      assert_resp_response(
          client, client.json().get("arr"), [1, 2, 3], [[[1, 2, 3]]]
      )
  
      # <0 test, should be 0 equivalent
      client.json().set("arr", Path.root_path(), [0, 1, 2, 3, 4])
      assert 0 == client.json().arrtrim("arr", Path.root_path(), -1, 3)
  
      # testing stop > end
      client.json().set("arr", Path.root_path(), [0, 1, 2, 3, 4])
      assert 2 == client.json().arrtrim("arr", Path.root_path(), 3, 99)
  
      # start > array size and stop
      client.json().set("arr", Path.root_path(), [0, 1, 2, 3, 4])
      assert 0 == client.json().arrtrim("arr", Path.root_path(), 9, 1)
  
      # all larger
      client.json().set("arr", Path.root_path(), [0, 1, 2, 3, 4])
      assert 0 == client.json().arrtrim("arr", Path.root_path(), 9, 11)
  
imports: import pytest
  import redis
  from redis import Redis, exceptions
  from redis.commands.json.decoders import decode_list, unstring
  from redis.commands.json.path import Path
  from .conftest import _get_client, assert_resp_response, skip_ifmodversion_lt
label_desc: Use image node_id 23 for calling a global function with example usage: test_arrtrim(client) without return types