def METHOD_NAME(self, file_path, user_name, password, seq, offset):
    user = curvesnapshot.CUserInfo_t()
    user.owner = user_name
    user.password = password
    segInfo = curvesnapshot.CSegmentInfo_t()
    rc = curvesnapshot.GetSnapshotSegmentInfo(file_path, user, seq, offset, segInfo)
    if rc != 0:
        logger.error("get_snapshot_SegmentInfo fail! rc=%s" % rc)
        return rc
    else:
        return segInfo