class_docstr: Performs update(x): result = fn(result, x)
  where fn is a custom function
class_docstr_tok: ["Performs","update","(","x",")",":","result","=","fn","(","result",",","x",")","where","fn","is","a","custom","function"]
code: def get(self) -> Optional[Tensor]:
      return self.result
  
imports: from typing import Any, Callable, List, Optional, TYPE_CHECKING
  import torch
  from torch import Tensor
label_desc: Use image node_id 2 for calling the GeneralAccumFn obj's underlying member method code with example usage: obj.get() and returns: self