code: def set_frameworkcontroller_config(
      experiment_config, port, config_file_name
  ):
      """set kubeflow configuration"""
      frameworkcontroller_config_data = dict()
      frameworkcontroller_config_data[
          "frameworkcontroller_config"
      ] = experiment_config["frameworkcontrollerConfig"]
      response = rest_put(
          cluster_metadata_url(port),
          json.dumps(frameworkcontroller_config_data),
          REST_TIME_OUT,
      )
      err_message = None
      if not response or not response.status_code == 200:
          if response is not None:
              err_message = response.text
              _, stderr_full_path = get_log_path(config_file_name)
              with open(stderr_full_path, "a+") as fout:
                  fout.write(
                      json.dumps(
                          json.loads(err_message),
                          indent=4,
                          sort_keys=True,
                          separators=(",", ":"),
                      )
                  )
          return False, err_message
      set_V1_common_config(experiment_config, port, config_file_name)
      result, message = setNNIManagerIp(
          experiment_config, port, config_file_name
      )
      if not result:
          return result, message
      # set trial_config
      return (
          set_trial_config(experiment_config, port, config_file_name),
          err_message,
      )
  
imports: import json
  import os
  from pathlib import Path
  import sys
  import string
  import random
  import time
  import re
  from subprocess import Popen, check_call, CalledProcessError, PIPE, STDOUT
  from nni.experiment.config import ExperimentConfig, convert
  from nni.tools.package_utils.tuner_factory import get_builtin_module_class_name
  from .launcher_utils import validate_all_content
  from .rest_utils import rest_put, rest_post, check_rest_server, check_response
  from .url_utils import cluster_metadata_url, experiment_url, get_local_urls, set_prefix_url
  from .config_utils import Config, Experiments
  from .common_utils import get_yml_content, get_json_content, print_error, print_normal, detect_port
  from .constants import NNI_HOME_DIR, ERROR_INFO, REST_TIME_OUT, EXPERIMENT_SUCCESS_INFO, LOG_HEADER
  from .command_utils import check_output_command, kill_command
  from .nnictl_utils import update_experiment
label_desc: Use image node_id 10 for calling a global function with example usage: set_frameworkcontroller_config(experiment_config, port, config_file_name) and returns: set_trial_config,  err_message, False,  err_message, result,  message