code: def func_with_rlock():
      def decorator(func):
          def _LOCKED_REPO(self, *args, **kwargs):
              with self.lock:
                  return func(self, *args, **kwargs)
  
          return _LOCKED_REPO
  
      return decorator
  
imports: import copy
  import multiprocessing
  import os
  from abc import abstractmethod
  from neuraxle.base import BaseService, MetaServiceMixin
  from neuraxle.logging.logging import NeuraxleLogger
  from neuraxle.logging.warnings import RaiseDeprecatedClass
  from neuraxle.metaopt.data.vanilla import BaseDataclass, RootDataclass, ScopedLocation, ScopedLocationAttr, SubDataclassT, dataclass_2_subloc_attr
label_desc: Use image node_id 1 for calling a global function with example usage: func_with_rlock() and returns: decorator, _LOCKED_REPO, func