code: def GuttmanLambdaB_calc(TP, FP, FN, TN):
      """
      Calculate Guttman's Lambda B similarity.
  
      :param TP: true positive
      :type TP: int
      :param TN: true negative
      :type TN: int
      :param FP: false positive
      :type FP: int
      :param FN: false negative
      :type FN: int
      :return: Guttman's Lambda B similarity as float
      """
      try:
          n = TP + FP + FN + TN
          part1 = max(TP, FP) + max(FN, TN)
          part2 = max(TP + FN, FP + TN)
          return (part1 - part2) / (n - part2)
      except Exception:
          return "None"
  
imports: from __future__ import division
  from enum import Enum
  import math
label_desc: Use image node_id 47 for calling a global function with example usage: GuttmanLambdaB_calc(TP, FP, FN, TN) and returns: unknown, str