code: def _pyramid(self, tile_size):
      w, _, _ = compute_pyramid_patch_weight_loss(
          tile_size[0], tile_size[1]
      )
      return w
  
imports: import dataclasses
  import math
  from typing import List, Iterable, Tuple, Union, Sequence
  import cv2
  import numpy
  import torch
label_desc: Use image node_id 9 for calling the ImageSlicer obj's underlying member method code with example usage: obj._pyramid(tile_size) and returns: w