code: def as_dict(self):
      d = self.__dict__
      d["name"] = self.name
      d["slug"] = self.slug
      return d
  
imports: import functools
  import logging
  import os
  import pathlib
  from pelican.utils import slugify
label_desc: Use image node_id 6 for calling the URLWrapper obj's underlying member method code with example usage: obj.as_dict() and returns: d