code: def dumps(
      obj,
      cls=GeoJSONEncoder,
      allow_nan=False,
      ensure_ascii=False,
      **kwargs,
  ):
      return json.dumps(
          to_mapping(obj),
          cls=cls,
          allow_nan=allow_nan,
          ensure_ascii=ensure_ascii,
          **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 3 for calling a global function with example usage: dumps(obj, cls, allow_nan, ensure_ascii) and returns: json