def pol2cart(rho: torch.Tensor, phi: torch.Tensor) -> Tuple[(torch.Tensor, torch.Tensor)]:
    'Function that converts polar coordinates to cartesian coordinates.\n\n    Args:\n        rho (torch.Tensor): Tensor of arbitrary shape.\n        phi (torch.Tensor): Tensor of same arbitrary shape.\n\n    Returns:\n        torch.Tensor, torch.Tensor: Tensor with same shape as input.\n\n    Example:\n        >>> rho = torch.rand(1, 3, 3)\n        >>> phi = torch.rand(1, 3, 3)\n        >>> x, y = pol2cart(rho, phi)\n    '
    if (not (isinstance(rho, torch.Tensor) & isinstance(phi, torch.Tensor))):
        raise TypeError('Input type is not a torch.Tensor. Got {}, {}'.format(type(rho), type(phi)))
    x = (rho * torch.cos(phi))
    y = (rho * torch.sin(phi))
    return (x, y)
Function that converts polar coordinates to cartesian coordinates.

Args:
    rho (torch.Tensor): Tensor of arbitrary shape.
    phi (torch.Tensor): Tensor of same arbitrary shape.

Returns:
    torch.Tensor, torch.Tensor: Tensor with same shape as input.

Example:
    >>> rho = torch.rand(1, 3, 3)
    >>> phi = torch.rand(1, 3, 3)
    >>> x, y = pol2cart(rho, phi)
def pol2cart(rho: torch.Tensor, phi: torch.Tensor) -> Tuple[(torch.Tensor, torch.Tensor)]:
    'Function that converts polar coordinates to cartesian coordinates.\n\n    Args:\n        rho (torch.Tensor): Tensor of arbitrary shape.\n        phi (torch.Tensor): Tensor of same arbitrary shape.\n\n    Returns:\n        torch.Tensor, torch.Tensor: Tensor with same shape as input.\n\n    Example:\n        >>> rho = torch.rand(1, 3, 3)\n        >>> phi = torch.rand(1, 3, 3)\n        >>> x, y = pol2cart(rho, phi)\n    '
    if (not (isinstance(rho, torch.Tensor) & isinstance(phi, torch.Tensor))):
        raise TypeError('Input type is not a torch.Tensor. Got {}, {}'.format(type(rho), type(phi)))
    x = (rho * torch.cos(phi))
    y = (rho * torch.sin(phi))
    return (x, y)