code: def test_dvcignore_pattern_change_dir(
      tmp_dir, patterns, dirname, changed
  ):
      assert _change_dirname(
          dirname, [PatternInfo(patterns, "")], "/"
      ) == [PatternInfo(changed, "")]
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_dvcignore_pattern_change_dir(tmp_dir, patterns, dirname, changed) without return types