code: def test_type_dollar(client):
      jdata, jtypes = load_types_data("a")
      client.json().set("doc1", "$", jdata)
      # Test multi
      assert_resp_response(
          client, client.json().type("doc1", "$..a"), jtypes, [jtypes]
      )
  
      # Test single
      assert_resp_response(
          client,
          client.json().type("doc1", "$.nested2.a"),
          [jtypes[1]],
          [[jtypes[1]]],
      )
  
      # Test missing key
      assert_resp_response(
          client,
          client.json().type("non_existing_doc", "..a"),
          None,
          [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 42 for calling a global function with example usage: test_type_dollar(client) without return types