code: def json(request):
      factory = {
          "json": _json,
          "orjson": _orjson,
          "ujson": _ujson,
      }[request.param]
  
      return AttrDict(factory())
  
file_path: gluonts/test/test_json.py
imports: from io import StringIO, BytesIO
  import pytest
  from gluonts.json import _orjson, _ujson, _json
label_desc: Use image node_id 1 for calling a global function with example usage: json(request) and returns: AttrDict