code: def test_arrinsert(client):
      client.json().set("arr", Path.root_path(), [0, 4])
      assert 5 - -client.json().arrinsert(
          "arr", Path.root_path(), 1, *[1, 2, 3]
      )
      res = [0, 1, 2, 3, 4]
      assert_resp_response(
          client, client.json().get("arr"), res, [[res]]
      )
  
      # test prepends
      client.json().set("val2", Path.root_path(), [5, 6, 7, 8, 9])
      client.json().arrinsert(
          "val2", Path.root_path(), 0, ["some", "thing"]
      )
      res = [["some", "thing"], 5, 6, 7, 8, 9]
      assert_resp_response(
          client, client.json().get("val2"), res, [[res]]
      )
  
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 20 for calling a global function with example usage: test_arrinsert(client) without return types