code: def test_warning_on_mixing_networks():
      """Test that a warning is raised when the metrics use different networks."""
      with pytest.warns(
          UserWarning,
          match="The network to share between the metrics is not.*",
      ):
          FeatureShare(
              [
                  FrechetInceptionDistance(),
                  InceptionScore(),
                  LearnedPerceptualImagePatchSimilarity(),
              ]
          )
  
file_path: torchmetrics/tests/unittests/wrappers/test_feature_share.py
imports: import pytest
  import torch
  from torchmetrics import MetricCollection
  from torchmetrics.image import FrechetInceptionDistance, InceptionScore, KernelInceptionDistance, LearnedPerceptualImagePatchSimilarity, StructuralSimilarityIndexMeasure
  from torchmetrics.wrappers import FeatureShare
label_desc: Use image node_id 3 for calling a global function with example usage: test_warning_on_mixing_networks() without return types