code: def test_rlimit():
      resource = pytest.importorskip("resource")
  
      # decrease memory limit by one byte
      new_limit = memory_limit() - 1
      resource.setrlimit(resource.RLIMIT_RSS, (new_limit, new_limit))
      assert memory_limit() == new_limit
  
file_path: distributed/distributed/tests/test_system.py
imports: from __future__ import annotations
  import builtins
  import io
  import sys
  import psutil
  import pytest
  from distributed.compatibility import MACOS
  from distributed.system import memory_limit
label_desc: Use image node_id 7 for calling a global function with example usage: test_rlimit() without return types