def METHOD_NAME(self, inputs: torch.Tensor) -> torch.Tensor:
    """Extract features.
    Args:
        inputs (Tensor): Image tensor with shape (N, C, H ,W).
    Returns:
        Tensor or tuple[Tensor]: Multi-level features that may have
        different resolutions.
    """
    inputs = self.backbone(inputs)
    if self.with_neck:
        inputs = self.neck(inputs)
    return inputs