def METHOD_NAME(self):
    # A device UUID looks like:
    #
    #     GPU-e6489c45-5b68-3b03-bab7-0e7c8e809643
    #
    # To test, we construct an RE that matches this form and verify that
    # the returned UUID matches.
    #
    # Device UUIDs may not conform to parts of the UUID specification (RFC
    # 4122) pertaining to versions and variants, so we do not extract and
    # validate the values of these bits.
    h = '[0-9a-f]{%d}'
    h4 = h % 4
    h8 = h % 8
    h12 = h % 12
    uuid_format = f'^GPU-{h8}-{h4}-{h4}-{h4}-{h12}$'
    dev = devices.get_context().device
    self.assertRegex(dev.uuid, uuid_format)