code: def _echo(s, err=False, **kw):
      if config.log_output():
          if err:
              log.warning(s)
          else:
              log.info(s)
      else:
          click.echo(s, err=err, **kw)
  
imports: import functools
  import logging
  import os
  import sys
  import shutil
  import typing
  import click
  from guild import ansi_util
  from guild import config
label_desc: Use image node_id 7 for calling a global function with example usage: _echo(s, err) without return types