code: def dumps(ob, hex=False, srid=None, **kw):
      """Dump a WKB representation of a geometry to a byte string, or a
      hex-encoded string if ``hex=True``.
  
      Parameters
      ----------
      ob : geometry
          The geometry to export to well-known binary (WKB) representation
      hex : bool
          If true, export the WKB as a hexadecimal string. The default is to
          return a binary string/bytes object.
      srid : int
          Spatial reference system ID to include in the output. The default value
          means no SRID is included.
      **kw : kwargs, optional
          Keyword output options passed to :func:`~shapely.to_wkb`.
      """
      if srid is not None:
          # clone the object and set the SRID before dumping
          ob = shapely.set_srid(ob, srid)
          kw["include_srid"] = True
      if "big_endian" in kw:
          # translate big_endian=True/False into byte_order=0/1
          # but if not specified, keep the default of byte_order=-1 (native)
          big_endian = kw.pop("big_endian")
          byte_order = 0 if big_endian else 1
          kw.update(byte_order=byte_order)
      return shapely.to_wkb(ob, hex=hex, **kw)
  
imports: import shapely
label_desc: Use image node_id 3 for calling a global function with example usage: dumps(ob, hex, srid) and returns: shapely