code: def test_format_dict_node_template_custom():
      """Test dict formatting with custom node template"""
      template = "{key} is a dict:\n{value}\n"
      dummy_dict_with_leafs = {1: {2: {}}, 2: {}, 3: {1: {4: 3}, 2: {}}}
      lines = format_dict(
          dummy_dict_with_leafs, templates={"dict_node": template}
      ).split("\n")
      assert len(lines) == 7
      assert lines[0] == "1 is a dict:"
      #   2
      # 2
      assert lines[3] == "3 is a dict:"
      assert lines[4] == "1 is a dict:"
  
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 16 for calling a global function with example usage: test_format_dict_node_template_custom() without return types