def _is_mode_available(self, mode_code):
        try:
            return mode_code in self._mode_mapping_bynumber
        except:
            return False

    #
    # Operations to support the standard API.
    #
dataset/ETHPy150Open dronekit/dronekit-python/dronekit/__init__.py/Vehicle._is_mode_available/original