def get_channels_axis(data_format='channels_last'):
    ' Return the integer channels axis based on string data format. '
    return (1 if ((data_format == 'channels_first') or data_format.startswith('NC')) else (- 1))
Return the integer channels axis based on string data format.
def get_channels_axis(data_format='channels_last'):
    '  '
    return (1 if ((data_format == 'channels_first') or data_format.startswith('NC')) else (- 1))