def METHOD_NAME(work_items_info, robot_parent):
    def make_relative(val: str) -> str:
        if not val:
            return val
        return str(Path(val).relative_to(robot_parent)).replace("\\", "/")
    new = {}
    for key, val in work_items_info.items():
        if key in (
            "robot_yaml",
            "input_folder_path",
            "output_folder_path",
            "new_output_workitem_path",
        ):
            new[key] = make_relative(val)
        elif key in ("input_work_items", "output_work_items"):
            new_lst = []
            new[key] = new_lst
            for item in val:
                d = {}
                new_lst.append(d)
                for k, v in item.items():
                    if k == "json_path":
                        d[k] = make_relative(v)
                    else:
                        d[k] = v
        else:
            new[key] = val
    return new