code: def iter_params(module: Module, recurse=False) -> Iterable[Parameter]:
      return map(
          lambda pair: pair[1], get_all_parameters(module, recurse)
      )
  
imports: from dataclasses import dataclass
  import collections
  from collections import UserDict
  from typing import Deque, Set
  from deepspeed import comm
  from deepspeed.utils.logging import logger
  from deepspeed.runtime.zero.offload_config import OffloadDeviceEnum
  from deepspeed.runtime.zero.partition_parameters import *
  from deepspeed.runtime.zero.partitioned_param_profiler import PartitionedParameterProfiler
  from deepspeed.runtime.swap_tensor.partitioned_param_swapper import PartitionedParamStatus
  from deepspeed.utils.debug import debug_module2name_id, debug_param2name_id
  from deepspeed.accelerator import get_accelerator
  import logging
label_desc: Use image node_id 3 for calling a global function with example usage: iter_params(module, recurse) and returns: map