code: def with_attributes(**attrs):
      def decorator(func):
          for key, value in attrs.items():
              setattr(func, key, value)
          return func
  
      return decorator
  
imports: import random
  import numpy
  from geopandas import GeoSeries
  from shapely.geometry import Point, Polygon, MultiPolygon
label_desc: Use image node_id 1 for calling a global function with example usage: with_attributes() and returns: decorator, func