(self, tensor: list, hid: int = -1, p_hid: int = -1, tensor_type='list')
:param tensor: list returned by calculate_histogram
        :param hid: histogram id
        :param p_hid: parent node histogram id
        :param tensor_type: 'list' or 'array'
:param tensor: list returned by calculate_histogram
        :param hid: histogram id
        :param p_hid: parent node histogram id
        :param tensor_type: 'list' or 'array'
: param tensor : list returned by calculate_histogram : param hid : histogram id : param p_hid : parent node histogram id : param tensor_type : list or array
def __init__(self, tensor: list, hid: int = -1, p_hid: int = -1, tensor_type='list'):

        """
        :param tensor: list returned by calculate_histogram
        :param hid: histogram id
        :param p_hid: parent node histogram id
        :param tensor_type: 'list' or 'array'
        """

        self.hid = hid
        self.p_hid = p_hid
        self.bag = tensor
        self.tensor_type = tensor_type
def __init__ ( self , tensor : list , hid : int = - 1 , p_hid : int = - 1 , tensor_type = 'list' ) : self . hid = hid self . p_hid = p_hid self . bag = tensor self . tensor_type = tensor_type