def objlib_to_path(lib, object=None) -> str:
    """Returns the path for the given objlib in IFS

    >>> objlib_to_path("TONGKUN")
    '/QSYS.LIB/TONGKUN.LIB'
    >>> objlib_to_path("TONGKUN", "SAMREF.FILE")
    '/QSYS.LIB/TONGKUN.LIB/SAMREF.FILE'
    """
    if not lib:
        raise ValueError()
    if object is not None:
        return f"/QSYS.LIB/{lib}.LIB/{object}"
    else:
        return f"/QSYS.LIB/{lib}.LIB"