code: def child_by_code(self, code):
          
          for child in self.childs:
              if child.path.split('/')[-1] == code:
                  return child
          return None
docs: Get child MenuItem by its last path code
  
          :param code:
          :return: MenuItem or None