code: def canonicalize_strides(
      shape: Tuple[int, ...], strides: Tuple[int, ...]
  ) -> Tuple[int, ...]:
      return tuple(0 if s == 1 else st for s, st in zip(shape, strides))
  
imports: from __future__ import annotations
  import functools, operator, itertools
  from dataclasses import dataclass
  from typing import Tuple, List, Optional, Dict, cast
  from tinygrad.helpers import prod, all_int, argsort
  from tinygrad.shape.symbolic import Node, NumNode, Variable, Set, sint
label_desc: Use image node_id 1 for calling a global function with example usage: canonicalize_strides(shape, strides) and returns: tuple