code: def test_json_commands_in_pipeline(client):
      p = client.json().pipeline()
      p.set("foo", Path.root_path(), "bar")
      p.get("foo")
      p.delete("foo")
      assert_resp_response(
          client, p.execute(), [True, "bar", 1], [True, [["bar"]], 1]
      )
      assert client.keys() == []
      assert client.get("foo") is None
  
      # now with a true, json object
      client.flushdb()
      p = client.json().pipeline()
      d = {"hello": "world", "oh": "snap"}
      with pytest.deprecated_call():
          p.jsonset("foo", Path.root_path(), d)
          p.jsonget("foo")
      p.exists("notarealkey")
      p.delete("foo")
      assert_resp_response(
          client, p.execute(), [True, d, 0, 1], [True, [[d]], 0, 1]
      )
      assert client.keys() == []
      assert client.get("foo") is None
  
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 27 for calling a global function with example usage: test_json_commands_in_pipeline(client) without return types