code: def main(cfg):
      OmegaConf.set_struct(
          cfg, False
      )  # This allows getattr and hasattr methods to function correctly
      if cfg.pretty_print:
          print(OmegaConf.to_yaml(cfg))
  
      trainer = Trainer(cfg)
      trainer.train()
      #
      # # https://github.com/facebookresearch/hydra/issues/440
      GlobalHydra.get_state().clear()
      return 0
  
imports: import hydra
  from hydra.core.global_hydra import GlobalHydra
  from omegaconf import OmegaConf
  from torch_points3d.trainer import Trainer
label_desc: Use image node_id 1 for calling a global function with example usage: main(cfg) and returns: int