@classmethod
def by_id(cls, node=None, id=None):
    """Retrieve a subnets record by id and create a Subnet instance from it.

        Args:
            node (BaseNode): the node from which the subnet belongs
            id (str): id of the subnet to retrieve

        Returns:
            Subnet: a Subnet instance corresponding to the record
        """
    response = node.user.client.subnets.get(node.user.id, node.id, id)
    return cls.from_response(node, response)
