code: def sandbox(profile, overwrite):
      if not overwrite:
          confirm_overwrite_config(profile)
      # Prompt for user input.
      encoded_str = click.prompt(
          "Following instructions from "
          "https://metaflow.org/sandbox, "
          "please paste the encoded magic string",
          type=str,
      )
      # Decode the bytes to env_dict.
      try:
          import base64
          import zlib
          from metaflow.util import to_bytes
  
          env_dict = json.loads(
              to_unicode(
                  zlib.decompress(
                      base64.b64decode(to_bytes(encoded_str))
                  )
              )
          )
      except:
          # TODO: Add the URL for contact us page in the error?
          raise click.BadArgumentUsage(
              "Could not decode the sandbox "
              "configuration. Please contact us."
          )
      # Persist to a file.
      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 12 for calling a global function with example usage: sandbox(profile, overwrite) without return types