def METHOD_NAME(self, ray_samples: RaySamples) -> Tuple[TensorType[..., 1], TensorType[..., "num_features"]]:
    """Computes and returns the densities. Returns a tensor of densities and a tensor of features.
    Args:
        ray_samples: Samples locations to compute density.
    """