code: def test_max_size_exceeded(ray_start_2_cpus, temp_data_dirs):
      tmp_source, tmp_target = temp_data_dirs
  
      node_ip = ray.util.get_node_ip_address()
      with pytest.raises(RayTaskError):
          _sync_dir_between_different_nodes(
              source_ip=node_ip,
              source_path=tmp_source,
              target_ip=node_ip,
              target_path=tmp_target,
              max_size_bytes=2,
          )
  
file_path: ray/python/ray/tune/tests/test_util_file_transfer.py
imports: import io
  import tarfile
  import os
  import pytest
  import shutil
  import tempfile
  from ray.exceptions import RayTaskError
  from ray.tune.utils.file_transfer import _sync_dir_between_different_nodes, _sync_dir_on_same_node
  import ray.util
label_desc: Use image node_id 10 for calling a global function with example usage: test_max_size_exceeded(ray_start_2_cpus, temp_data_dirs) without return types