code: def refresh_tileable_shape(tileable):
      if has_unknown_shape(tileable):
          # update shape
          nsplits = calc_nsplits(
              {c.index: c.shape for c in tileable.chunks}
          )
          shape = tuple(sum(ns) for ns in nsplits)
          tileable._nsplits = nsplits
          tileable._shape = shape
  
imports: from typing import List, Union, Generator
  from ...typing import TileableType, ChunkType
  from ...utils import has_unknown_shape, calc_nsplits
label_desc: Use image node_id 1 for calling a global function with example usage: refresh_tileable_shape(tileable) without return types