code: def test_json_formatter():
      json_formatter = JsonFormatter()
      record = LogRecord(
          name="record",
          level="level",
          pathname="pathname",
          lineno=1,
          msg="text message",
          args=None,
          exc_info=None,
      )
      format_dict = json.loads(json_formatter.format(record))
      assert format_dict["pathname"] == "pathname"
      assert format_dict["lineno"] == 1
      assert format_dict["levelname"] == "Level level"
      assert format_dict["msg"] == "text message"
  
imports: import json
  from logging import LogRecord
  import pytest
  from jina.logging.formatter import JsonFormatter, ProfileFormatter
label_desc: Use image node_id 1 for calling a global function with example usage: test_json_formatter() without return types