code: def __generate_dummy_json_file(path):
      with open(path, "w") as f:
          json.dump([1, 2, 3], f)
  
file_path: mlflow/tests/models/test_artifacts.py
imports: import json
  import pathlib
  import matplotlib.pyplot
  import numpy
  import pandas
  import pytest
  from mlflow.exceptions import MlflowException
  from mlflow.models.evaluation.artifacts import CsvEvaluationArtifact, ImageEvaluationArtifact, JsonEvaluationArtifact, NumpyEvaluationArtifact, ParquetEvaluationArtifact, PickleEvaluationArtifact, TextEvaluationArtifact, _infer_artifact_type_and_ext
  from mlflow.models.evaluation.default_evaluator import _CustomArtifact
label_desc: Use image node_id 2 for calling a global function with example usage: __generate_dummy_json_file(path) without return types