code: def is_correct(self):
          
          state = True
  
          # Internal checks before executing inherited function...
          loop = self.no_loop_in_parents("host_name", "dependent_host_name")
          if loop:
              msg = "Loop detected while checking host dependencies"
              self.add_error(msg)
              state = False
              for item in self:
                  for elem in loop:
                      if elem == item.host_name:
                          msg = "Host %s is parent host_name in dependency defined in %s" % (
                              item.host_name_string, item.imported_from
                          )
                          self.add_error(msg)
                      elif elem == item.dependent_host_name:
                          msg = "Host %s is child host_name in dependency defined in %s" % (
                              item.dependent_host_name_string, item.imported_from
                          )
                          self.add_error(msg)
  
          return super(Hostdependencies, self).is_correct() and state
docs: Check if this object configuration is correct ::
  
          * Check our own specific properties
          * Call our parent class is_correct checker
  
          :return: True if the configuration is correct, otherwise False
          :rtype: bool