code: def tile_to_blocksize(t, blocksize):
      *rest, m, n = t.shape
      new_shape = rest + [
          m // blocksize[0],
          blocksize[0],
          n // blocksize[1],
          blocksize[1],
      ]
      # using .view instead of .reshape to ensure that the result is
      # indeed a view:
      return t.view(new_shape).transpose(-3, -2)
  
imports: import math
  import os
  import torch
  import weakref
  from functools import lru_cache
  from torch.utils._triton import has_triton
  from ._triton_ops_meta import get_meta
  from typing import Optional, Tuple
label_desc: Use image node_id 16 for calling a global function with example usage: tile_to_blocksize(t, blocksize) and returns: t