code: def check_available_ram(self, requested_ram):
          
  
          available_ram = int(psutil.virtual_memory().available / (1024 * 1024))
          percentage_left = psutil.virtual_memory().percent
          if requested_ram > available_ram:
              message = '"{}" requires {}MB of RAM to run but there is only {}MB - {}% of RAM left on "{}"'.format(self.name,
                                                                                                                   requested_ram,
                                                                                                                   available_ram,
                                                                                                                   percentage_left,
                                                                                                                   platform.node())
              self.project.emit("log.warning", {"message": message})
docs: Sends a warning notification if there is not enough RAM on the system to allocate requested RAM.
  
          :param requested_ram: requested amount of RAM in MB