code: def convertPromises(kwargs):
          
          for r in ["disk", "memory", "cores"]:
              if isinstance(kwargs.get(r), Promise):
                  kwargs[r] = PromisedRequirement(kwargs[r])
                  return True
              elif isinstance(kwargs.get(r), PromisedRequirement):
                  return True
          return False
docs: Returns True if reserved resource keyword is a Promise or
          PromisedRequirement instance. Converts Promise instance
          to PromisedRequirement.
  
          :param kwargs: function keyword arguments
          :return: bool