class_docstr: Create a cached version of a network to be shared between metrics.
  
  Because the different metrics may invoke the same network multiple times, we can save time by caching the input-
  output pairs of the network.
class_docstr_tok: ["Create","a","cached","version","of","a","network","to","be","shared","between","metrics",".","Because","the","different","metrics","may","invoke","the","same","network","multiple","times",",","we","can","save","time","by","caching","the","input-","output","pairs","of","the","network","."]
docstr: Call the network with the given arguments.
docstr_tok: ["Call","the","network","with","the","given","arguments","."]
code: def forward(self, *args: Any, **kwargs: Any) -> Any:
      """Call the network with the given arguments."""
      return self.network(*args, **kwargs)
  
file_path: torchmetrics/src/torchmetrics/wrappers/feature_share.py
imports: from functools import lru_cache
  from typing import Any, Dict, Optional, Sequence, Union
  from torch.nn import Module
  from torchmetrics.collections import MetricCollection
  from torchmetrics.metric import Metric
  from torchmetrics.utilities import rank_zero_warn
label_desc: Use image node_id 2 for calling the NetworkCache obj's underlying member method code with example usage: obj.forward() and returns: self