<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def lookup_device_name(self, vendor_id, device_id):
 """ Lookup the name of a given device. :param vendor_id: PCI vendor identifier :ptype vendor_id: int :param device_id: PCI device identifier :ptype device_id: int :returns: Name of the PCI device. .. note:: Lookup respects various flag properties that impact the behavior in case the name cannot be found in the local database. Refer to the documentation of each of the ``flag_`` properties. """

        buf = ctypes.create_string_buffer(1024)
        _logger.debug("Performing the lookup on vendor:device %#06x:%#06x",
                      vendor_id, device_id)
        flags = self._flags | pci_lookup_mode.PCI_LOOKUP_DEVICE
        pci_lookup_name2(self._access, buf, ctypes.sizeof(buf), flags,
                         vendor_id, device_id)
        return buf.value.decode("utf-8")