code: def test_dataset_to_json_orient_invalidproc(self, dataset):
      with pytest.raises(ValueError):
          with io.BytesIO() as buffer:
              JsonDatasetWriter(dataset, buffer, num_proc=0)
  
imports: import io
  import json
  import fsspec
  import pytest
  from datasets import Dataset, DatasetDict, Features, NamedSplit, Value
  from datasets.io.json import JsonDatasetReader, JsonDatasetWriter
  from ..utils import assert_arrow_memory_doesnt_increase, assert_arrow_memory_increases
label_desc: Use image node_id 5 for calling the TestJsonDatasetWriter obj's underlying member method code with example usage: obj.test_dataset_to_json_orient_invalidproc(dataset) without return types