code: def check_for_missing_profile(profile):
      path = get_config_path(profile)
      # Absence of default config is equivalent to running locally.
      if profile and not os.path.exists(path):
          raise click.ClickException(
              "Couldn't find configuration for profile "
              + click.style('"%s"' % profile, fg="red")
              + " in "
              + click.style('"%s"' % path, fg="red")
          )
  
imports: import json
  import os
  import sys
  from os.path import expanduser
  from metaflow.util import to_unicode
  from metaflow._vendor import click
  from metaflow.util import to_unicode
  from .util import echo_always, makedirs
label_desc: Use image node_id 5 for calling a global function with example usage: check_for_missing_profile(profile) without return types