def get_splitter_instance(split_type):
    """Return an Instance of :class:`sagemaker.local.data.Splitter` according to
    the specified `split_type`.

    Args:
        split_type (str): either 'Line' or 'RecordIO'. Can be left as None to signal no data split
            will happen.

    Returns
        :class:`sagemaker.local.data.Splitter`: an Instance of a Splitter
    """
    if split_type is None:
        return NoneSplitter()
    elif split_type == 'Line':
        return LineSplitter()
    elif split_type == 'RecordIO':
        return RecordIOSplitter()
    else:
        raise ValueError('Invalid Split Type: %s' % split_type)
def get_splitter_instance ( split_type ) : if split_type is None : return NoneSplitter ( ) elif split_type == 'Line' : return LineSplitter ( ) elif split_type == 'RecordIO' : return RecordIOSplitter ( ) else : raise ValueError ( 'Invalid Split Type: %s' % split_type )
Return an Instance of :class:`sagemaker.local.data.Splitter` according to
    the specified `split_type`.

    Args:
        split_type (str): either 'Line' or 'RecordIO'. Can be left as None to signal no data split
            will happen.

    Returns
        :class:`sagemaker.local.data.Splitter`: an Instance of a Splitter