code: def _check_bad_guildfile(dist):
      import guild.model  # expensive
  
      if isinstance(dist, guild.model.BadGuildfileDistribution):
          cli.error(
              f"guildfile in {cwd_desc(dist.location)} contains an "
              "error (see above for details)"
          )
  
imports: import logging
  import os
  import typing
  from guild import cli
  from guild import click_util
  from guild import config
label_desc: Use image node_id 3 for calling a global function with example usage: _check_bad_guildfile(dist) without return types