code: def test_sync__all__exclusive_error(input_command, extra_arg, tmpdir):
      with tmp_chdir(str(tmpdir)), pytest.raises(
          subprocess.CalledProcessError
      ):
          subprocess.check_output(
              input_command + ["sync", "--all", extra_arg],
              stderr=subprocess.STDOUT,
          )
  
imports: import argparse
  import os
  import subprocess
  import sys
  from glob import glob
  from pathlib import Path
  from unittest.mock import patch
  import pytest
  from pyproj.__main__ import main
  from pyproj.datadir import append_data_dir, get_data_dir, get_user_data_dir
  from pyproj.sync import _load_grid_geojson
  from test.conftest import grids_available, proj_env, tmp_chdir
label_desc: Use image node_id 10 for calling a global function with example usage: test_sync__all__exclusive_error(input_command, extra_arg, tmpdir) without return types