(e)
Retun True if the event is for an unexpected exit status.
Retun True if the event is for an unexpected exit status.
Retun True if the event is for an unexpected exit status .
def is_unexpected_exit_status_event(e):
  """Retun True if the event is for an unexpected exit status."""
  if _API_VERSION == google_v2_versions.V2ALPHA1:

    return e.get('details', {}).get(
        '@type'
    ) == 'type.googleapis.com/google.genomics.v2alpha1.UnexpectedExitStatusEvent'

  elif _API_VERSION == google_v2_versions.V2BETA:

    return 'unexpectedExitStatus' in e

  else:
    assert False, 'Unexpected version: {}'.format(_API_VERSION)
def is_unexpected_exit_status_event ( e ) : if _API_VERSION == google_v2_versions . V2ALPHA1 : return e . get ( 'details' , { } ) . get ( '@type' ) == 'type.googleapis.com/google.genomics.v2alpha1.UnexpectedExitStatusEvent' elif _API_VERSION == google_v2_versions . V2BETA : return 'unexpectedExitStatus' in e else : assert False , 'Unexpected version: {}' . format ( _API_VERSION )