code: def clean_params():
      prev = _get_torch_init_params()
      try:
          _set_torch_init_params(None)
          if "CUDA_VISIBLE_DEVICES" in os.environ:
              del os.environ["CUDA_VISIBLE_DEVICES"]
          yield
      finally:
          _set_torch_init_params(prev)
  
file_path: ludwig/tests/ludwig/utils/test_torch_utils.py
imports: import contextlib
  import os
  from typing import List
  from unittest.mock import patch
  import pytest
  import torch
  from ludwig.utils.torch_utils import _get_torch_init_params, _set_torch_init_params, initialize_pytorch, sequence_length_2D, sequence_length_3D
label_desc: Use image node_id 3 for calling a global function with example usage: clean_params() without return types