def _is_descriptor_mobile_available(descriptor):
 if (IgnoreMobileAvailableFlagConfig.is_enabled() or descriptor.mobile_available):
  return ACCESS_GRANTED
 else:
  return MobileAvailabilityError()

def _is_descriptor_mobile_available ( descriptor ) : if ( IgnoreMobileAvailableFlagConfig . is_enabled ( ) or descriptor . mobile_available ) : return ACCESS_GRANTED else : return MobileAvailabilityError ( )
returns if descriptor is available on mobile .