code: def export(profile, output_filename):
      check_for_missing_profile(profile)
      # Export its contents to a new file.
      path = get_config_path(profile)
      env_dict = {}
      if os.path.exists(path):
          with open(path, "r") as f:
              env_dict = json.load(f)
      # resolve_path doesn't expand `~` in `path`.
      output_path = expanduser(output_filename)
      if os.path.exists(output_path):
          if click.confirm(
              "Do you wish to overwrite the contents in "
              + click.style('"%s"' % output_path, fg="cyan")
              + "?",
              abort=True,
          ):
              pass
      # Write to file.
      with open(output_path, "w") as f:
          json.dump(env_dict, f, indent=4, sort_keys=True)
      echo("Configuration successfully exported to: ", nl=False)
      echo('"%s"' % output_path, fg="cyan")
  
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 10 for calling a global function with example usage: export(profile, output_filename) without return types