code: def _materialize_meta_tensors(
      module: torch.nn.Module, device: _DEVICE
  ) -> None:
      """Materialize all tensors in a given module."""
      for module in module.modules():
          if any(
              t.is_meta
              for t in itertools.chain(
                  module.parameters(recurse=False),
                  module.buffers(recurse=False),
              )
          ):
              _materialize(module, device)
  
file_path: pytorch-lightning/src/lightning/fabric/utilities/init.py
imports: import itertools
  from typing import Any, Callable, Dict, Optional, Sequence
  import torch
  from typing_extensions import override
  from lightning.fabric.utilities.imports import _TORCH_GREATER_EQUAL_1_13, _TORCH_GREATER_EQUAL_2_1
  from lightning.fabric.utilities.types import _DEVICE
label_desc: Use image node_id 2 for calling a global function with example usage: _materialize_meta_tensors(module, device) without return types