code: def into(self, val: str) -> Union['ApiNode', 'ApiEndpoint']:
          
          if val in self.paths:
              return self.paths[val]
          if self.param:
              return self.param
          raise IndexError(_("Value {} is missing from api").format(val))
docs: Get another leaf node with name `val` if possible