import torch


def tensor(x):
    """Construct a PyTorch tensor of data type `torch.float64`.

    Args:
        x (object): Object to construct array from.

    Returns:
        tensor: PyTorch array of data type `torch.float64`.
    """
    return torch.tensor(x, dtype=torch.float64)