code: def evaluator_extractor(result, evaluator_name):
      metric_value = result[evaluator_name] if result else nan
      return pd.DataFrame({evaluator_name: [metric_value]})
  
imports: import collections.abc
  from datetime import datetime
  from itertools import chain, repeat
  import pandas
  from toolz import curry
  from numpy import nan
label_desc: Use image node_id 1 for calling a global function with example usage: evaluator_extractor(result, evaluator_name) and returns: pd