code: def _nested_relations(self, relation):
          
          nested = {}
  
          for name, constraints in self._eager_load.items():
              if self._is_nested(name, relation):
                  nested[name[len(relation + ".") :]] = constraints
  
          return nested
docs: Get the deeply nested relations for a given top-level relation.
  
          :rtype: dict