class_docstr: Cached property with non-cached getter available.
class_docstr_tok: ["Cached","property","with","non-cached","getter","available","."]
docstr: The cost of the item.
docstr_tok: ["The","cost","of","the","item","."]
code: def get_cost(self):
      """The cost of the item."""
      self._cost += 1
      return self._cost
  
imports: import concurrent.futures
  import sys
  import threading
  import pytest
  from flash.core.serve._compat.cached_property import cached_property
  from flash.core.utilities.imports import _TOPIC_SERVE_AVAILABLE
label_desc: Use image node_id 1 for calling the OptionallyCachedCostItem obj's underlying member method code with example usage: obj.get_cost() and returns: self