code: def uuid_add_implicit_resolver(Loader=ConfigLoader, Dumper=ConfigDumper):
      
      uuid_regex = r'^\b[a-f0-9]{8}-\b[a-f0-9]{4}-\b[a-f0-9]{4}-\b[a-f0-9]{4}-\b[a-f0-9]{12}$'
      pattern = re.compile(uuid_regex)
      yaml.add_implicit_resolver('!uuid', pattern, Loader=Loader, Dumper=Dumper)
docs: Attach an implicit pattern resolver for UUID objects.
  
      Tests:
          >>> class TestDumper(yaml.SafeDumper): pass
          >>> class TestLoader(yaml.SafeLoader): pass
          >>> TUUID = 'cc3702ca-699a-4aa6-8226-4c938f294d9b'
          >>> IN = {'test': uuid.UUID(TUUID)}
          >>> OUT = '{test: cc3702ca-699a-4aa6-8226-4c938f294d9b}'
  
          >>> yaml.add_representer(uuid.UUID, uuid_representer, Dumper=TestDumper)
          >>> yaml.add_constructor('!uuid', uuid_constructor, Loader=TestLoader)
          >>> uuid_add_implicit_resolver(Loader=TestLoader, Dumper=TestDumper)
  
          >>> yaml.dump(IN, Dumper=TestDumper)
          'test: cc3702ca-699a-4aa6-8226-4c938f294d9b\\n'
          >>> yaml.load(OUT, Loader=TestLoader)
          {'test': UUID('cc3702ca-699a-4aa6-8226-4c938f294d9b')}