code: def test_xla_profiler_instance(tmpdir):
      model = BoringModel()
      trainer = Trainer(
          default_root_dir=tmpdir,
          fast_dev_run=True,
          profiler="xla",
          accelerator="tpu",
          devices="auto",
      )
  
      assert isinstance(trainer.profiler, XLAProfiler)
      trainer.fit(model)
  
file_path: pytorch-lightning/tests/tests_pytorch/profilers/test_xla_profiler.py
imports: import os
  from multiprocessing import Event, Process
  from unittest import mock
  import pytest
  from lightning.pytorch import Trainer
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.profilers import XLAProfiler
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 1 for calling a global function with example usage: test_xla_profiler_instance(tmpdir) without return types