code: def Minkowski(
      architecture: str = None,
      input_nc: int = None,
      num_layers: int = None,
      config: DictConfig = None,
      *args,
      **kwargs,
  ):
      """Create a Minkowski backbone model based on architecture proposed in
       https://arxiv.org/abs/1904.08755
  
       Parameters
       ----------
       architecture : str, optional
           Architecture of the model, choose from unet, encoder and decoder
       input_nc : int, optional
           Number of channels for the input
      output_nc : int, optional
           If specified, then we add a fully connected head at the end of the network to provide the requested dimension
       num_layers : int, optional
           Depth of the network
       config : DictConfig, optional
           Custom config, overrides the num_layers and architecture parameters
       in_feat:
           Size of the first layer
       block:
           Type of resnet block, ResBlock by default but can be any of the blocks in modules/MinkowskiEngine/api_modules.py
      """
      log.warning(
          "Minkowski API is deprecated in favor of the SparseConv3d API. It should be a simple drop in replacement (no change to the API)."
      )
      factory = MinkowskiFactory(
          architecture=architecture,
          num_layers=num_layers,
          input_nc=input_nc,
          config=config,
          **kwargs,
      )
      return factory.build()
  
imports: import os
  import sys
  from omegaconf import DictConfig, OmegaConf
  import logging
  import torch
  from torch_geometric.data import Batch
  from torch_points3d.applications.modelfactory import ModelFactory
  from torch_points3d.modules.MinkowskiEngine.api_modules import *
  from torch_points3d.core.base_conv.message_passing import *
  from torch_points3d.core.base_conv.partial_dense import *
  from torch_points3d.models.base_architectures.unet import UnwrappedUnetBasedModel
  from torch_points3d.core.common_modules.base_modules import MLP
  from .utils import extract_output_nc
label_desc: Use image node_id 1 for calling a global function with example usage: Minkowski(architecture, input_nc, num_layers, config) and returns: factory