code: def bed_generator(bed_path):
      
      with open(bed_path) as handle:
          bed_reader = csv.reader(handle, delimiter='\t')
          for line in bed_reader:
              yield BedLine(line)
docs: Iterates through a BED file yielding parsed BED lines.
  
      Parameters
      ----------
      bed_path : str
          path to BED file
  
      Yields
      ------
      BedLine(line) : BedLine
          A BedLine object which has parsed the individual line in
          a BED file.