Split a file into records using a specific strategy

        This RecordIOSplitter splits the data into individual RecordIO records.

        Args:
            file (str): path to the file to split

        Returns: generator for the individual records that were split from the file

def split(self, file):
        """Split a file into records using a specific strategy

        This RecordIOSplitter splits the data into individual RecordIO records.

        Args:
            file (str): path to the file to split

        Returns: generator for the individual records that were split from the file
        """
        with open(file, 'rb') as f:
            for record in sagemaker.amazon.common.read_recordio(f):
                yield record