code: def test_str2bool(string, expected):
      assert str2bool(string) == expected
  
file_path: nipype/nipype/utils/tests/test_misc.py
imports: import os
  from shutil import rmtree
  import pytest
  from nipype.utils.misc import container_to_string, str2bool, flatten, unflatten, dict_diff
label_desc: Use image node_id 2 for calling a global function with example usage: test_str2bool(string, expected) without return types