code: def _pick_tile_size(data, kernel, layout="NCHW"):
      if layout == "NCHW":
          N, CI, H, W = get_const_tuple(data.shape)
      else:
          assert layout == "NHWC"
          N, H, W, CI = get_const_tuple(data.shape)
  
      if H % 4 == 0:
          return 4
      else:
          return 2
  
imports: import logging
  import tvm
  from tvm import te
  from tvm import relay
  from tvm import autotvm
  from tvm.autotvm.task.space import get_factors
  from ..utils import traverse_inline, get_const_int, get_const_tuple
  from ..None import nn
  from ..nn.winograd_util import winograd_transform_matrices
  from ..nn.conv2d import conv2d_winograd_nhwc, _conv2d_winograd_nhwc_impl
  from ..arm_cpu.conv2d_spatial_pack import conv2d_spatial_pack_nchw
  from ..arm_cpu.conv2d_spatial_pack import conv2d_spatial_pack_nhwc
label_desc: Use image node_id 6 for calling a global function with example usage: _pick_tile_size(data, kernel, layout) and returns: int, int