code: def create_model(trial):
      # We optimize the numbers of layers and their units.
      n_layers = trial.suggest_int("n_layers", 1, 3)
  
      layers = []
      for i in range(n_layers):
          n_units = trial.suggest_int(
              "n_units_l{}".format(i), 4, 128, log=True
          )
          layers.append(L.Linear(None, n_units))
          layers.append(F.relu)
      layers.append(L.Linear(None, 10))
  
      return chainer.Sequential(*layers)
  
file_path: chainer/examples/optuna/chainermn_integration.py
imports: import sys
  import chainer
  import chainer.functions
  import chainer.links
  import chainermn
  import numpy
  import optuna
label_desc: Use image node_id 1 for calling a global function with example usage: create_model(trial) and returns: chainer