code: def slug(self, slug):
      # if slug is expliticly set, changing name won't alter slug
      self._slug_from_name = False
      self._slug = slug
  
imports: import functools
  import logging
  import os
  import pathlib
  from pelican.utils import slugify
label_desc: Use image node_id 5 for calling the URLWrapper obj's underlying member method code with example usage: obj.slug(slug) without return types