code: def get_parsed_field(parsed_config, fields):
      """
      Parsed the value from web profile page, 'copy to clipboard' option
      :param parsed_config: The parsed value from the web ui
      :type parsed_config: Config object
      :param fields: list of values to parse, will parse by the list order
      :type fields: List[str]
      :return: parsed value if found, None else
      """
      try:
          return parsed_config.get("api").get(fields[0])
      except (
          ConfigMissingException
      ):  # fallback - try to parse the field like it was in web older version
          if len(fields) == 1:
              return parsed_config.get(fields[0])
          elif len(fields) == 2:
              return parsed_config.get(fields[1])
          else:
              return None
  
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 5 for calling a global function with example usage: get_parsed_field(parsed_config, fields) and returns: parsed_config, parsed_config, parsed_config, None