code: def minimise_function(func, *args, **kwargs):
      """
      Minimises a function func over domain domain. See maximise_function for a description
      of the arguments. All arguments are the same except for func, which should now be
      minimised.
      """
      func_to_max = lambda x: -func(x)
      max_val, opt_pt, history = maximise_function(
          func_to_max, *args, **kwargs
      )
      min_val = -max_val
      history = post_process_history_for_minimisation(history)
      return min_val, opt_pt, history
  
file_path: dragonfly/dragonfly/apis/opt.py
imports: from .api_utils import get_worker_manager_from_type, load_options_for_method, post_process_history_for_minimisation, preprocess_arguments, preprocess_multifidelity_arguments, preprocess_options_for_gp_bandits
  from ..exd.experiment_caller import EuclideanFunctionCaller, CPFunctionCaller
  from ..exd.cp_domain_utils import get_raw_from_processed_via_config
  from ..opt.cp_ga_optimiser import cp_ga_optimiser_from_proc_args
  from ..opt.gp_bandit import gpb_from_func_caller
  from ..opt.random_optimiser import random_optimiser_from_func_caller, mf_random_optimiser_from_func_caller
  from ..utils.oper_utils import direct_ft_maximise
  from ..utils.doo import pdoo_maximise_from_args
label_desc: Use image node_id 3 for calling a global function with example usage: minimise_function(func) and returns: min_val,  opt_pt,  history