code: def _shape_for_resolution(resolution: int) -> tuple[int, int]:
      assert resolution in RES_TO_REPEAT_FACTOR
      factor = RES_TO_REPEAT_FACTOR[resolution]
      if factor == 1:
          return SCAN_LEN_5KM, SCAN_WIDTH_5KM
  
      factor_1km = RES_TO_REPEAT_FACTOR[1000]
      shape_1km = (
          factor_1km * SCAN_LEN_5KM,
          factor_1km * SCAN_WIDTH_5KM + 4,
      )
      factor //= 5
      return factor * shape_1km[0], factor * shape_1km[1]
  
imports: from __future__ import annotations
  from datetime import datetime, timedelta
  from typing import Optional
  import numpy
  import pytest
  from pyhdf.SD import SD, SDC
label_desc: Use image node_id 1 for calling a global function with example usage: _shape_for_resolution(resolution) and returns: unknown,  unknown, SCAN_LEN_5KM,  SCAN_WIDTH_5KM