code: def convert_conv_type(conv_type, kernel_size, D):
      assert isinstance(
          conv_type, ConvType
      ), "conv_type must be of ConvType"
      region_type = conv_to_region_type[conv_type]
      axis_types = None
      if conv_type == ConvType.SPATIAL_HYPERCUBE:
          # No temporal convolution
          if isinstance(kernel_size, collections.Sequence):
              kernel_size = kernel_size[:3]
          else:
              kernel_size = [
                  kernel_size,
              ] * 3
          if D == 4:
              kernel_size.append(1)
      elif conv_type == ConvType.SPATIO_TEMPORAL_HYPERCUBE:
          # conv_type conversion already handled
          assert D == 4
      elif conv_type == ConvType.HYPERCUBE:
          # conv_type conversion already handled
          pass
      elif conv_type == ConvType.SPATIAL_HYPERCROSS:
          if isinstance(kernel_size, collections.Sequence):
              kernel_size = kernel_size[:3]
          else:
              kernel_size = [
                  kernel_size,
              ] * 3
          if D == 4:
              kernel_size.append(1)
      elif conv_type == ConvType.HYPERCROSS:
          # conv_type conversion already handled
          pass
      elif conv_type == ConvType.SPATIO_TEMPORAL_HYPERCROSS:
          # conv_type conversion already handled
          assert D == 4
      elif conv_type == ConvType.SPATIAL_HYPERCUBE_TEMPORAL_HYPERCROSS:
          # Define the CUBIC conv kernel for spatial dims and CROSS conv for temp dim
          if D < 4:
              region_type = ME.RegionType.HYPER_CUBE
          else:
              axis_types = [
                  ME.RegionType.HYPER_CUBE,
              ] * 3
              if D == 4:
                  axis_types.append(ME.RegionType.HYPER_CROSS)
      return region_type, axis_types, kernel_size
  
file_path: torch-points3d/torch_points3d/modules/MinkowskiEngine/common.py
imports: import collections
  from enum import Enum
  import torch.nn
  import MinkowskiEngine
label_desc: Use image node_id 3 for calling a global function with example usage: convert_conv_type(conv_type, kernel_size, D) and returns: region_type,  axis_types,  kernel_size