code: def __init__(self, fun):
      self.fun = fun
  
imports: from typing import List
  import abc
  from pandas import DataFrame
  import pandas
  import hail
  from hail.utils.java import warning
  from .utils import should_use_scale_for_grouping
label_desc: Use image node_id 1 to create a new StatFunction object from inherited base classes: StatIdentity with example: obj = StatFunction(fun)