code: def disable_opening_files():
      """Context manager to disable opening new files."""
      soft_limit, hard_limit = resource.getrlimit(
          resource.RLIMIT_NOFILE
      )
      try:
          resource.setrlimit(resource.RLIMIT_NOFILE, (1, hard_limit))
          yield
      finally:
          resource.setrlimit(
              resource.RLIMIT_NOFILE, (soft_limit, hard_limit)
          )
  
imports: import collections
  import contextlib
  import logging
  import resource
  import tempfile
  from absl.testing.absltest import mock
  import pytest
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import shuffle
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: disable_opening_files() without return types