code: def click_invoke(runner, cmd_fn, args, env=None):
      res = runner.invoke(cmd_fn, args, env=env)
      if res.exception is not None and res.exc_info[0] != SystemExit:
          traceback.print_exception(*res.exc_info)
      return res
  
imports: import datetime
  import decimal
  import difflib
  import json
  import os
  import traceback
  from collections.abc import Iterable
  from typing import Any
label_desc: Use image node_id 5 for calling a global function with example usage: click_invoke(runner, cmd_fn, args, env) and returns: res