code: def custom_template(tmp_dir, dvc):
      from dvc_render.vega_templates import SimpleLinearTemplate
  
      template = tmp_dir / "custom_template.json"
      template.write_text(
          json.dumps(SimpleLinearTemplate.DEFAULT_CONTENT)
      )
      return template
  
imports: import json
  import os
  import sys
  from contextlib import suppress
  import pytest
  from dvc import env
  from dvc.stage import PipelineStage
  from dvc.testing.fixtures import *
  from .dir_helpers import *
  from .remotes import *
  from .scripts import *
label_desc: Use image node_id 9 for calling a global function with example usage: custom_template(tmp_dir, dvc) and returns: template