code: def test_custom_decoder(client):
      import json
  
      import ujson
  
      cj = client.json(encoder=ujson, decoder=ujson)
      assert cj.set("foo", Path.root_path(), "bar")
      assert_resp_response(client, cj.get("foo"), "bar", [["bar"]])
      assert cj.get("baz") is None
      assert 1 == cj.delete("foo")
      assert client.exists("foo") == 0
      assert not isinstance(cj.__encoder__, json.JSONEncoder)
      assert not isinstance(cj.__decoder__, json.JSONDecoder)
  
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 48 for calling a global function with example usage: test_custom_decoder(client) without return types