(data: JSONInput, protocol: Optional[int] = None)
return cloudpickle.dumps(data, protocol=protocol)
Serialize a Python object with pickle.

    data: The object to serialize.
    protocol (int): Protocol to use. -1 for highest.
    RETURNS (bytes): The serialized object.
Serialize a Python object with pickle.
Serialize a Python object with pickle .
def pickle_dumps(data: JSONInput, protocol: Optional[int] = None) -> bytes:
    """Serialize a Python object with pickle.

    data: The object to serialize.
    protocol (int): Protocol to use. -1 for highest.
    RETURNS (bytes): The serialized object.
    """
    return cloudpickle.dumps(data, protocol=protocol)
def pickle_dumps ( data : JSONInput , protocol : Optional [ int ] = None ) -> bytes : return cloudpickle . dumps ( data , protocol = protocol )