code: def _is_path_in_lightning(path: Path) -> bool:
      """Naive check whether the path looks like a path from the lightning package."""
      return "lightning" in str(path.absolute())
  
file_path: pytorch-lightning/src/lightning/fabric/utilities/warnings.py
imports: import warnings
  from pathlib import Path
  from typing import Optional, Type, Union
  from lightning.fabric.utilities.rank_zero import LightningDeprecationWarning
label_desc: Use image node_id 3 for calling a global function with example usage: _is_path_in_lightning(path) and returns: unknown