def write(self, fp, options=None):
output = self.render(options)<EOL>if hasattr(output, '<STR_LIT>'):<EOL><INDENT>output.save(fp, format=self.writer.format)<EOL><DEDENT>else:<EOL><INDENT>fp.write(output)<EOL><DEDENT>
Renders the barcode and writes it to the file like object
        `fp`.

        :parameters:
            fp : File like object
                Object to write the raw data in.
            options : Dict
                The same as in `self.render`.