code: def test_arrappend(client):
      client.json().set("arr", Path.root_path(), [1])
      assert 2 == client.json().arrappend("arr", Path.root_path(), 2)
      assert 4 == client.json().arrappend("arr", Path.root_path(), 3, 4)
      assert 7 == client.json().arrappend(
          "arr", Path.root_path(), *[5, 6, 7]
      )
  
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 18 for calling a global function with example usage: test_arrappend(client) without return types