code: def copy(self):
          
          new_filter = BloomFilter(self.capacity, self.error_rate)
          new_filter.bitarray = self.bitarray.copy()
          return new_filter
docs: Return a copy of this bloom filter.