def METHOD_NAME(tensor: torch.Tensor):
    """
    Convert Pytorch tensor to numpy array.
    Parameters
    ----------
    tensor
        A Pytorch tensor.
    Returns
    -------
    A ndarray.
    """
    return tensor.detach().cpu().float().numpy()