code: def test_to_collection(val, val_type, col_type, expected):
      assert utils.to_collection(val, val_type, col_type) == expected
  
imports: import datetime
  import pathlib
  import pytest
  from textacy import utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_to_collection(val, val_type, col_type, expected) without return types