code: def input_url(host_type, host=None):
      while True:
          print(
              "{} configured to: {}".format(
                  host_type, "[{}] ".format(host) if host else ""
              ),
              end="",
          )
          parse_input = input()
          if host and (
              not parse_input
              or parse_input.lower() == "yes"
              or parse_input.lower() == "y"
          ):
              break
          parsed_host = verify_url(parse_input) if parse_input else None
          if parse_input and parsed_host:
              host = (
                  parsed_host.scheme
                  + "://"
                  + parsed_host.netloc
                  + parsed_host.path
              )
              break
      return host
  
imports: from __future__ import print_function
  import six
  import argparse
  import os
  from pathlib2 import Path
  from six.moves import input
  from six.moves.urllib.parse import urlparse
  from clearml.backend_api.session import Session
  from clearml.backend_api.session.defs import ENV_HOST
  from clearml.backend_config.defs import LOCAL_CONFIG_FILES, LOCAL_CONFIG_FILE_OVERRIDE_VAR
  from clearml.config import config_obj
  from clearml.utilities.pyhocon import ConfigFactory, ConfigMissingException
label_desc: Use image node_id 7 for calling a global function with example usage: input_url(host_type, host) and returns: host