code: def test_format_list_item_template_custom(dummy_list_of_lists):
      """Test list of lists with custom item template"""
      template = "{item} is an item\n"
      lines = format_list(
          dummy_list_of_lists, templates={"item": template}
      ).split("\n")
      assert len(lines) == 14
      # 1:
      assert lines[1] == "1 is an item"
      assert lines[3] == "2 is an item"
  
imports: import itertools
  import textwrap
  import pytest
  from orion.core.io.space_builder import SpaceBuilder
  from orion.core.utils.format_terminal import format_algorithm, format_commandline, format_config, format_dict, format_identification, format_info, format_list, format_metadata, format_refers, format_space, format_stats, format_title, get_trial_params
  from orion.core.worker.experiment import ExperimentStats
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 22 for calling a global function with example usage: test_format_list_item_template_custom(dummy_list_of_lists) without return types