def METHOD_NAME(cls):
    if not hasattr(cls, "mp_lock"):
        try:
            from multiprocessing import RLock
            cls.mp_lock = RLock()
        except (ImportError, OSError):
            cls.mp_lock = None