import json


def find_osd_by_id(osd_id, mon_node):
    """Find OSD by OSD.Id using 'ceph osd find {id}'

    Args:
        osd_id: osd id
        mon_node: mon_node to execute ceph commands

    Returns:
        osd_info
    """
    out, _ = mon_node.exec_command(
        cmd=f"ceph osd find {osd_id} --format json",
        sudo=True,
    )
    return json.loads(out.read().decode())