@classmethod
def get_example_file_content(cls, example_file, request):
    """
        Returns a binary file that will be served through the request
        This base implementation just renders a template and returns the result as BytesIO or StringIO
        Override this method to return a custom file content

        :param request HttpRequest
        :rtype StringIO|BytesIO
        """
    if example_file.template_name:
        from django.template import loader
        from six import StringIO
        file_content = StringIO()
        file_content.write(loader.render_to_string(template_name=
            example_file.template_name, context={}, request=request))
        return file_content
