code: def set_default_values(experiment_config):
      if experiment_config.get("maxExecDuration") is None:
          experiment_config["maxExecDuration"] = "999d"
      if experiment_config.get("maxTrialNum") is None:
          experiment_config["maxTrialNum"] = 99999
      if experiment_config.get("maxTrialDuration") is None:
          experiment_config["maxTrialDuration"] = "999d"
      if (
          experiment_config["trainingServicePlatform"] == "remote"
          or experiment_config["trainingServicePlatform"] == "hybrid"
          and "remote"
          in experiment_config["hybridConfig"][
              "trainingServicePlatforms"
          ]
      ):
          for index in range(len(experiment_config["machineList"])):
              if (
                  experiment_config["machineList"][index].get("port")
                  is None
              ):
                  experiment_config["machineList"][index]["port"] = 22
  
file_path: nni/nni/tools/nnictl/launcher_utils.py
imports: import os
  from schema import SchemaError
  from .config_schema import NNIConfigSchema
  from .common_utils import print_normal
label_desc: Use image node_id 5 for calling a global function with example usage: set_default_values(experiment_config) without return types