def METHOD_NAME(in_vec, out_vec):
    """
    If more lines are present for the same category
    it merges them
    """
    gcore.run_command(
        "v.clean",
        overwrite=True,
        input=in_vec,
        output=out_vec,
        tool="break,snap,rmdupl,rmarea,rmline,rmsa",
    )
    info = gcore.parse_command("v.category", input=out_vec, option="print")
    for i in info.keys():
        # import ipdb; ipdb.set_trace()
        gcore.run_command("v.edit", map=out_vec, tool="merge", cats=i)