code: def is_module_has_decorated(path,decorator_module,decorator_name):
      '''
          Finds out if a python module uses a given decorator.
          Args    :
              loaded_module      : The loaded module to be scanned.
              decorator_module    : Then name of the module defining the decorator.
              decorator_name      : The name of the decorator.
      '''
      #Regular expression for finding decoration in source code
      expression   = '(?:\s*@({}\.)?{}\s*\()'.format(decorator_module,decorator_name)
      #Get the source
      with open(path) as f:
          module_source   = f.read()
  
      #Find at least one use of the decorator
      regex_result = re.compile(expression).findall(module_source)
      return len(regex_result) > f is_module_has_decorated(path,decorator_module,decorator_name):
      '''
          Finds out if a python module uses a given decorator.
          Args    :
              loaded_module      : The loaded module to be scanned.
              decorator_module    : Then name of the module defining the decorator.
              decorator_name      : The name of the decorator.
      '''
      #Regular expression for finding decoration in source code
      expression   = '(?:\s*@({}\.)?{}\s*\()'.format(decorator_module,decorator_name)
      #Get the source
      with open(path) as f:
          module_source   = f.read()
  
      #Find at least one use of the decorator
      regex_result = re.compile(expression).findall(module_source)
      return len(regex_result) > 0
docs: Finds out if a python module uses a given decorator.
          Args    :
              loaded_module      : The loaded module to be scanned.
              decorator_module    : Then name of the module defining the decorator.
              decorator_name      : The name of the decorator.