code: def render(
      obj,
      task,
      config_path,
      arrow_version,
      arrow_remote,
      arrow_branch,
      arrow_sha,
      params,
  ):
      """
      Utility command to check the rendered CI templates.
      """
      from .core import _flatten
  
      def highlight(code):
          try:
              from pygments import highlight
              from pygments.lexers import YamlLexer
              from pygments.formatters import TerminalFormatter
  
              return highlight(code, YamlLexer(), TerminalFormatter())
          except ImportError:
              return code
  
      arrow = obj["arrow"]
  
      target = Target.from_repo(
          arrow,
          remote=arrow_remote,
          branch=arrow_branch,
          head=arrow_sha,
          version=arrow_version,
      )
      config = Config.load_yaml(config_path)
      params = dict([p.split("=") for p in params])
      params["queue_remote_url"] = "https://github.com/org/crossbow"
      job = Job.from_config(
          config=config, target=target, tasks=[task], params=params
      )
  
      for task_name, rendered_files in job.render_tasks().items():
          for path, content in _flatten(rendered_files).items():
              click.echo("#" * 80)
              click.echo("### {:^72} ###".format("/".join(path)))
              click.echo("#" * 80)
              click.echo(highlight(content))
  
imports: from datetime import date
  from pathlib import Path
  import time
  import sys
  import click
  from .core import Config, Repo, Queue, Target, Job, CrossbowError
  from .reports import ChatReport, Report, ReportUtils, ConsoleReport, EmailReport, CommentReport
  from ..utils.source import ArrowSources
label_desc: Use image node_id 5 for calling a global function with example usage: render(obj, task, config_path, arrow_version, arrow_remote, arrow_branch, arrow_sha, params) and returns: highlight, code