code: def dump(obj, fp, cls=GeoJSONEncoder, allow_nan=False, **kwargs):
      return json.dump(
          to_mapping(obj), fp, cls=cls, allow_nan=allow_nan, **kwargs
      )
  
file_path: geojson/geojson/codec.py
imports: import geojson
  import geojson.factory
  from geojson.mapping import to_mapping
label_desc: Use image node_id 2 for calling a global function with example usage: dump(obj, fp, cls, allow_nan) and returns: json