code: def convTri(input_, r, cuda=False):
      """
      Convolves an image by a 2D triangle filter (the 1D triangle filter f is
      [1:r r+1 r:-1:1]/(r+1)^2, the 2D version is simply conv2(f,f'))
      :param input_:
      :param r: integer filter radius
      :param cuda: move the kernel to gpu
      :return:
      """
      if r <= 1:
          raise ValueError()
      n, c, h, w = input_.shape
      return input_
  
file_path: pywick/pywick/models/segmentation/testnets/gscnn/my_functionals/custom_functional.py
imports: import torch
  import torch.nn.functional
  from torchvision.transforms.functional import pad
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: convTri(input_, r, cuda) and returns: input_