def write_bits_to_fileobject( self, fp ):                        #(N1)
        for bit_index in range(self.size):                           #(N2)
            if self[bit_index] == 0:                                 #(N3)
                fp.write( '0' )                                      #(N4)
            else:                                                    #(N5)
                fp.write( '1' )                                      #(N6)
This function is meant to write a bit vector directly to
dataset/ETHPy150Open networkdynamics/zenlib/src/zen/util/bitvector.py/BitVector.write_bits_to_fileobject