code: def import_from(profile, input_filename):
      check_for_missing_profile(profile)
      # Import configuration.
      input_path = expanduser(input_filename)
      env_dict = {}
      with open(input_path, "r") as f:
          env_dict = json.load(f)
      echo("Configuration successfully read from: ", nl=False)
      echo('"%s"' % input_path, fg="cyan")
  
      # Persist configuration.
      confirm_overwrite_config(profile)
      persist_env(env_dict, profile)
  
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 11 for calling a global function with example usage: import_from(profile, input_filename) without return types