code: def test_table2string():
      assert (
          table2string([["A", "B", "C", "D"], ["E", "F", "G", "H"]])
          == "A B C D\nE F G H\n"
      )
      assert (
          table2string(
              [
                  ["Let's", "Make", "Tests", "And"],
                  ["Have", "Lots", "Of", "Fun"],
                  ["With", "Python", "Guys", "!"],
              ]
          )
          == "Let's  Make  Tests And\n Have  Lots    Of  Fun"
          + "\n With Python  Guys  !\n"
      )
  
file_path: nibabel/nibabel/cmdline/tests/test_utils.py
imports: from io import StringIO
  from os.path import join
  import numpy
  import pytest
  import nibabel
  from nibabel.cmdline.diff import *
  from nibabel.cmdline.utils import *
  from nibabel.testing import data_path
label_desc: Use image node_id 1 for calling a global function with example usage: test_table2string() without return types