code: def _alloc_like(array, zeros: bool = True):
      if zeros:
          return cupy.zeros_like(array)
      else:
          return cupy.empty_like(array)
  
imports: import operator
  import re
  from collections import defaultdict
  from functools import reduce
  from pathlib import Path
  from typing import Callable, Optional, Tuple
  import numpy
  from ..compat import cupy, has_cupy_gpu
label_desc: Use image node_id 3 for calling a global function with example usage: _alloc_like(array, zeros) and returns: cupy, cupy