code: def check_lightning_pytorch_and_mps():
      if module_available("pytorch_lightning"):
          return pl.accelerators.MPSAccelerator.is_available()
      return False
  
file_path: pytorch-lightning/tests/tests_app/components/multi_node/test_trainer.py
imports: import os
  from copy import deepcopy
  from functools import partial
  from unittest import mock
  import pytest
  import pytorch_lightning
  from lightning.app.components.multi_node.trainer import _LightningTrainerRunExecutor
  from lightning_utilities.core.imports import module_available
  from lightning_utilities.test.warning import no_warning_call
label_desc: Use image node_id 4 for calling a global function with example usage: check_lightning_pytorch_and_mps() and returns: False, pl