code: def uuid_constructor(loader, node):
      
      Construct a uuid.UUID object form a scalar YAML node.
  
      Tests:
          >>> yaml.add_constructor("!uuid", uuid_constructor, Loader=yaml.SafeLoader)
          >>> yaml.safe_load("{'test': !uuid 'cc3702ca-699a-4aa6-8226-4c938f294d9b'}")
          {'test': UUID('cc3702ca-699a-4aa6-8226-4c938f294d9b')}
      """
  
      value = loader.construct_scalar(node)
      return uuid.UUID(value)
docs: Construct a uuid.UUID object form a scalar YAML node.
  
      Tests:
          >>> yaml.add_constructor("!uuid", uuid_constructor, Loader=yaml.SafeLoader)
          >>> yaml.safe_load("{'test': !uuid 'cc3702ca-699a-4aa6-8226-4c938f294d9b'}")
          {'test': UUID('cc3702ca-699a-4aa6-8226-4c938f294d9b')}