code: def suppress_lightning_warnings(suppress_all: bool = False):
      warnings.filterwarnings(
          "ignore",
          ".*You defined a `validation_step` but have no `val_dataloader`.*",
      )
      if suppress_all:
          warnings.filterwarnings(
              "ignore",
              ".*does not have many workers which may be a bottleneck.*",
          )
          warnings.filterwarnings(
              "ignore",
              ".*Trying to infer the `batch_size` from an ambiguous collection.*",
          )
  
file_path: darts/darts/logging.py
imports: import logging
  import os
  import time
  import warnings
label_desc: Use image node_id 8 for calling a global function with example usage: suppress_lightning_warnings(suppress_all) without return types