docs: def from_prefix(cls, container, prefix):
          """Create from prefix object."""
          if prefix is None:
              raise errors.NoObjectException
  
          return cls(container,
                     name=prefix.name,
                     obj_type=cls.type_cls.SUBDIR)