code: def reset(profile):
      check_for_missing_profile(profile)
      path = get_config_path(profile)
      if os.path.exists(path):
          if click.confirm(
              "Do you really wish to reset the configuration in "
              + click.style('"%s"' % path, fg="cyan"),
              abort=True,
          ):
              os.remove(path)
              echo("Configuration successfully reset to run locally.")
      else:
          echo("Configuration is already reset to run locally.")
  
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 8 for calling a global function with example usage: reset(profile) without return types