code: def test_cont_to_str():
      # list
      x = ["a", "b"]
      assert container_to_string(x) == "a b"
      # tuple
      x = tuple(x)
      assert container_to_string(x) == "a b"
      # set
      x = set(x)
      y = container_to_string(x)
      assert (y == "a b") or (y == "b a")
      # dict
      x = dict(a="a", b="b")
      y = container_to_string(x)
      assert (y == "a b") or (y == "b a")
      # string
      assert container_to_string("foobar") == "foobar"
      # int.  Integers are not the main intent of this function, but see
      # no reason why they shouldn't work.
      assert container_to_string(123) == "123"
  
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 1 for calling a global function with example usage: test_cont_to_str() without return types