code: def test_dump(path=None):
      assert not op.exists(path)
      # dump is nice and create the target directory
      dump("some", op.join(path, "file.json"))
      assert op.exists(path)
  
file_path: datalad/datalad/support/tests/test_json_py.py
imports: import logging
  import os.path
  from json import JSONDecodeError
  from datalad.support.json_py import dump, dump2stream, load, load_stream, loads
  from datalad.tests.utils_pytest import assert_in, assert_raises, eq_, swallow_logs, with_tempfile
label_desc: Use image node_id 5 for calling a global function with example usage: test_dump(path) without return types