def METHOD_NAME(pos, face, src, dst, max_distance, norm, i, dtype):
    s = src[i:i + 1]
    d = None if dst is None else dst[i:i + 1]
    out = gdist.compute_gdist(pos, face, s, d, max_distance * norm) / norm
    return torch.from_numpy(out).to(dtype)