'Checks if this is a dsym that is optional.'

def _is_optional_dsym(self, img, sdk_info=None):

    if (not self.is_image_from_app_bundle(img, sdk_info=sdk_info)):
        return False
    if self._is_app_bundled_framework(img):
        return True
    if self._is_support_framework(img):
        return True
    return False
