code: def eval_feature_expression(feature, expression):
      safe_dict = {"f": munchify(to_dict(feature))}
      safe_dict.update(
          {
              "sum": sum,
              "pow": pow,
              "min": min,
              "max": max,
              "math": math,
              "bool": bool,
              "int": partial(nullable, int),
              "str": partial(nullable, str),
              "float": partial(nullable, float),
              "len": partial(nullable, len),
          }
      )
      try:
          from shapely.geometry import shape
  
          safe_dict["shape"] = shape
      except ImportError:
          pass
      return eval(expression, {"__builtins__": None}, safe_dict)
  
file_path: Fiona/fiona/fio/helpers.py
imports: from functools import partial
  import json
  import math
  import warnings
  from fiona.model import Geometry, to_dict
  from fiona._vendor.munch import munchify
label_desc: Use image node_id 3 for calling a global function with example usage: eval_feature_expression(feature, expression) and returns: eval