code: def test_wrap_experiment_name_parameters_all_disordered():
      prefix = "wrap_exp_test_name_parameters_all_disordered"
      exp_path = pathlib.Path(os.getcwd(), "data/local", prefix)
      _hard_rmtree(exp_path)
      expected_path = exp_path / "test_exp_seed=1_env=test-env"
  
      @wrap_experiment(prefix=prefix, name_parameters="all")
      def test_exp(ctxt=None, seed=1, env="test-env"):
          del seed
          del env
          assert expected_path.samefile(ctxt.snapshot_dir)
  
      assert not exp_path.exists()
  
      test_exp()
  
      prefix_contents = list(exp_path.iterdir())
      assert len(prefix_contents) == 1
      assert prefix_contents[0].samefile(expected_path)
  
      expected_path = exp_path / "test_exp_seed=2_env=test-env-v2"
  
      test_exp(env="test-env-v2", seed=2)
  
      prefix_contents = list(exp_path.iterdir())
      assert len(prefix_contents) == 2
      assert any(
          [
              expected_path.samefile(directory)
              for directory in prefix_contents
          ]
      )
  
      expected_path = exp_path / "test_exp_seed=1_env=test-env-v2"
  
      test_exp(env="test-env-v2")
  
      prefix_contents = list(exp_path.iterdir())
      assert len(prefix_contents) == 3
      assert any(
          [
              expected_path.samefile(directory)
              for directory in prefix_contents
          ]
      )
  
imports: import os
  import pathlib
  import shutil
  import subprocess
  import sys
  import tempfile
  import textwrap
  import pytest
  from garage.experiment.experiment import wrap_experiment
label_desc: Use image node_id 12 for calling a global function with example usage: test_wrap_experiment_name_parameters_all_disordered() without return types