code: def as_document(data, schema=None, label=u"<unicode string>"):
      
      if schema is None:
          schema = Any()
  
      return schema(YAMLChunk(schema.to_yaml(data), label=label))
docs: Translate dicts/lists and scalar (string/bool/float/int/etc.) values into a
      YAML object which can be dumped out.