code: def _requirements_to_dict(rs):
      
      out = []
      added = set([])
      for r in rs:
          if r["class"] == "DockerRequirement" and "docker" not in added:
              added.add("docker")
              out.append({"requirement_type": "docker", "value": r["dockerImageId"]})
          elif r["class"] == "ResourceRequirement":
              if "coresMin" in r and "cpu" not in added:
                  added.add("cpu")
                  out.append({"requirement_type": "cpu", "value": r["coresMin"]})
              if "ramMin" in r and "memory" not in added:
                  added.add("memory")
                  out.append({"requirement_type": "memory", "value": "%s MB" % r["ramMin"]})
              if "tmpdirMin" in r and "disks" not in added:
                  added.add("disks")
                  out.append({"requirement_type": "disks", "value": "local-disk %s HDD" % r["tmpdirMin"]})
      return out
docs: Convert supported requirements into dictionary for output.