code: def log_loss_weights(
      loss_weights: Dict[str, float], logger: Logger
  ) -> None:
      """
      Print a table of the loss weights.
      """
      loss_weights_message = (
          "-------\nloss_weights:\n"
          + "\n".join(
              f"{k:40s}: {w:1.2e}" for k, w in loss_weights.items()
          )
          + "-------"
      )
      logger.info(loss_weights_message)
  
file_path: pytorch3d/pytorch3d/implicitron/models/utils.py
imports: import warnings
  from logging import Logger
  from typing import Any, Dict, Optional, Tuple
  import torch
  import tqdm
  from pytorch3d.common.compat import prod
  from pytorch3d.implicitron.models.renderer.base import ImplicitronRayBundle
  from pytorch3d.implicitron.tools import image_utils
  from pytorch3d.implicitron.tools.utils import cat_dataclass
label_desc: Use image node_id 2 for calling a global function with example usage: log_loss_weights(loss_weights, logger) without return types