def make_swagger_configuration_picklable(
    configuration_cls: Type,
) -> None:
    """Adds __getstate__ and __setstate__ methods to swagger configuration to make it
    picklable.

    This doesn't make all swagger classes picklable. Notably, the ApiClient and
    and RESTClientObject classes are not picklable. Use the picklable
    LightlySwaggerApiClient and LightlySwaggerRESTClientObject classes instead.
    """
    configuration_cls.__getstate__ = _Configuration__getstate__
    configuration_cls.__setstate__ = _Configuration__setstate__
Adds __getstate__ and __setstate__ methods to swagger configuration to make it
    picklable.

    This doesn't make all swagger classes picklable. Notably, the ApiClient and
    and RESTClientObject classes are not picklable. Use the picklable
    LightlySwaggerApiClient and LightlySwaggerRESTClientObject classes instead.
    
lightly/api/patch.py