code: def count_fraction_of_true(series: pd.Series):
      # We are assuming this is called by a Boolean series
      if series.dtype != bool and series.dtype != "Int64":
          raise ValueError
      num_true = series.sum()
      total = float(series.count())
      return num_true / total if total > 0.0 else 0.0, num_true
  
label_desc: Use image node_id 1 for calling a global function with example usage: count_fraction_of_true(series) and returns: unknown,  num_true