old_contents: from collections import Callable
  from unittest import mock
  
  import pytest
  
  from clearly.utils.env_params import get_env_param, get_env_int, get_env_list, get_env_str
  
  
  def test_retrieve_correct_var():
      with mock.patch('os.getenv') as mocked_getenv:
          get_env_param('NAME', 1, int)
          mocked_getenv.assert_called_once_with('NAME')
  
  
  @pytest.mark.parametrize('value, func, expected', [
      ('123', get_env_int, 123),
      ('123', get_env_list, ['123']),
      ('123', get_env_str, '123'),
      ('cool', get_env_int, None),
      ('cool', get_env_list, ['cool']),
      ('cool', get_env_str, 'cool'),
      ('very cool', get_env_int, None),
      ('very cool', get_env_list, ['very', 'cool']),
      ('very cool', get_env_str, 'very cool'),
      (None, get_env_int, None),
      (None, get_env_list, None),
      (None, get_env_str, None),
  ])
  def test_convert_values(value, func: Callable, expected):
      with mock.patch('os.getenv') as mocked_getenv:
          mocked_getenv.return_value = value
          assert func('A_VAR', None) == expected
  
new_contents: from unittest import mock
  
  import pytest
  
  from clearly.utils.env_params import get_env_param, get_env_int, get_env_list, get_env_str
  
  
  def test_retrieve_correct_var():
      with mock.patch('os.getenv') as mocked_getenv:
          get_env_param('NAME', 1, int)
          mocked_getenv.assert_called_once_with('NAME')
  
  
  @pytest.mark.parametrize('value, func, expected', [
      ('123', get_env_int, 123),
      ('123', get_env_list, ['123']),
      ('123', get_env_str, '123'),
      ('cool', get_env_int, None),
      ('cool', get_env_list, ['cool']),
      ('cool', get_env_str, 'cool'),
      ('very cool', get_env_int, None),
      ('very cool', get_env_list, ['very', 'cool']),
      ('very cool', get_env_str, 'very cool'),
      (None, get_env_int, None),
      (None, get_env_list, None),
      (None, get_env_str, None),
  ])
  def test_convert_values(value, func, expected):
      with mock.patch('os.getenv') as mocked_getenv:
          mocked_getenv.return_value = value
          assert func('A_VAR', None) == expected
  
subject: fix auto import