<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _process_genotypes(self, limit):
 """ Add the genotype internal id to flybase mapping to the idhashmap. Also, add them as individuals to the graph. Triples created: <genotype id> a GENO:intrinsic_genotype <genotype id> rdfs:label "<gvc> [bkgd]" :param limit: :return: """

        if self.test_mode:
            graph = self.testgraph
        else:
            graph = self.graph
        model = Model(graph)
        line_counter = 0

        raw = '/'.join((self.rawdir, 'genotype'))
        LOG.info("building labels for genotypes")
        geno = Genotype(graph)
        fly_tax = self.globaltt['Drosophila melanogaster']
        with open(raw, 'r') as f:
            f.readline()  # read the header row; skip
            filereader = csv.reader(f, delimiter='\t', quotechar='\"')
            for line in filereader:
                line_counter += 1

                (genotype_num, uniquename, description, name) = line

                # if self.test_mode is True:
                #     if int(object_key) not in self.test_keys.get('genotype'):
                #         continue

                # add the internal genotype to pub mapping
                genotype_id = 'MONARCH:FBgeno'+str(genotype_num)
                self.idhash['genotype'][genotype_num] = genotype_id

                if description == '':
                    description = None

                if not self.test_mode and limit is not None and line_counter > limit:
                    pass
                else:
                    if self.test_mode and int(genotype_num) \
                            not in self.test_keys['genotype']:
                        continue

                    model.addIndividualToGraph(
                        genotype_id, uniquename,
                        self.globaltt['intrinsic_genotype'],
                        description)
                    # we know all genotypes are in flies
                    # FIXME we assume here they are in melanogaster,
                    # but that isn't necessarily true!!!
                    # TODO should the taxon be == genomic background?
                    geno.addTaxon(fly_tax, genotype_id)
                    genotype_iid = self._makeInternalIdentifier(
                        'genotype', genotype_num)
                    model.addComment(
                        genotype_id, genotype_iid)
                    if name.strip() != '':
                        model.addSynonym(genotype_id, name)

        return