docs: def add_conditions(self, condition, condprob):
          """
          helper function for adding probability conditions for model\
  
          Parameters
          ---------------
  
          condition:  dictionary
                      contains and element of conditions list
          condprob:   etree SubElement
                      the tag to which condition is added
  
          Return
          ---------------
          None
          """
          var_tag = etree.SubElement(condprob, 'Var')
          var_tag.text = condition['Var']
          parent_tag = etree.SubElement(condprob, 'Parent')
          parent_tag.text = ''
          for parent in condition['Parent']:
              parent_tag.text += parent + ' '
          parent_tag.text = parent_tag.text[:-1]
          parameter_tag = etree.SubElement(condprob, 'Parameter', attrib={'type': condition['Type']
                                                                          if condition['Type'] is not None
                                                                          else 'TBL'})
          if condition['Type'] == 'DD':
              dag_tag = etree.SubElement(parameter_tag, 'DAG')
              parameter_dict = condition['Parameter']
              if 'SubDAGTemplate' in parameter_dict:
                  subdag_tag = etree.SubElement(parameter_tag, 'SubDAGTemplate', attrib={'id': parameter_dict['id']})
                  self.add_parameter_dd(subdag_tag, parameter_dict['SubDAGTemplate'])
                  del parameter_dict['SubDAGTemplate']
                  del parameter_dict['id']
                  self.add_parameter_dd(dag_tag, parameter_dict)
              else:
                  self.add_parameter_dd(dag_tag, parameter_dict)
          else:
              for parameter in condition['Parameter']:
                  entry = etree.SubElement(parameter_tag, 'Entry')
                  instance = etree.SubElement(entry, 'Instance')
                  instance.text = ''
                  for instance_var in parameter['Instance']:
                      instance.text += instance_var + ' '
                  length_instance = len(parameter['Instance'])
                  if len(parameter['Instance'][length_instance - 1]) > 1:
                          instance.text = instance.text[:-1]
                  if len(parameter['Instance']) == 1:
                      instance.text = ' ' + instance.text
                  if condprob.tag == 'Func':
                      table = 'ValueTable'
                  else:
                      table = 'ProbTable'
                  prob_table = parameter[table]
                  prob_table_tag = etree.SubElement(entry, table)
                  prob_table_tag.text = ''
                  for probability in prob_table:
                      prob_table_tag.text += probability + ' '
                  prob_table_tag.text = prob_table_tag.text[:-1]