def METHOD_NAME(self, port_num):
    # Check for invalid port_num
    if port_num < self.qsfp_port_start or port_num > self.qsfp_port_end:
        return False
    try:
        eeprom = None
        if not self.get_presence(port_num):
            return False
        eeprom = open(self.port_to_eeprom_mapping[port_num], "rb")
        eeprom.seek(93)
        lpmode = ord(eeprom.read(1))
        if ((lpmode & 0x3) == 0x3):
            return True  # Low Power Mode if "Power override" bit is 1 and "Power set" bit is 1
        else:
            # High Power Mode if one of the following conditions is matched:
            # 1. "Power override" bit is 0
            # 2. "Power override" bit is 1 and "Power set" bit is 0
            return False
    except IOError as e:
        print("Error: unable to open file: %s" % str(e))
        return False
    finally:
        if eeprom is not None:
            eeprom.close()
            time.sleep(0.01)