code: def test_nested_readonly_containers():
      container = ([0, [], {}, ()], {0: (), 1: [], 2: {}})
      container = make_read_only(container)
      _check_read_only_list(container[0])
      _check_read_only_list(container[0][1])
      _check_read_only_dict(container[0][2])
      _check_read_only_dict(container[1])
      _check_read_only_dict(container[1][2])
      _check_read_only_list(container[1][1])
  
      # Check explicitly for tuple (and not isinstance) to be sure that the type
      # is not altered
      assert type(container) == tuple
      assert type(container[0][3]) == tuple
      assert type(container[1][0]) == tuple
  
imports: import json
  import pickle
  import pytest
  from copy import copy, deepcopy
  from sacred.config.custom_containers import make_read_only, ReadOnlyList, ReadOnlyDict
  from sacred.utils import SacredError
label_desc: Use image node_id 9 for calling a global function with example usage: test_nested_readonly_containers() without return types