def get_texture(self, texres, name=None, background=None, labels=True, bits=32, **kwargs):
        #set the current size of the texture
        w, h = self.svgshape
        dpi = texres / h * 72

        if background is not None:
            img = E.image(
                {"{http://www.w3.org/1999/xlink}href":"data:image/png;base64,%s"%background},
                id="image_%s"%name, x="0", y="0",
                width=str(self.svgshape[0]),
                height=str(self.svgshape[1]),
            )
            self.svg.getroot().insert(0, img)

        if labels:
            if hasattr(self, "labels"):
                self.labels.attrib['style'] = "display:inline;"
            else:
                self.setup_labels(**kwargs)
        else:
            if hasattr(self, "labels"):
                self.labels.attrib['style'] = "display:none;"

        pngfile = name
        if name is None:
            png = tempfile.NamedTemporaryFile(suffix=".png")
            pngfile = png.name

        cmd = "convert -background none -density {dpi} SVG:- PNG{bits}:{outfile}"
        cmd = cmd.format(dpi=dpi, outfile=pngfile, bits=bits)
        proc = sp.Popen(shlex.split(cmd), stdin=sp.PIPE, stdout=sp.PIPE)
        proc.communicate(etree.tostring(self.svg))
        
        if background is not None:
            self.svg.getroot().remove(img)

        if name is None:
            png.seek(0)
            return png
Test that collect() finds our test fixtures
dataset/ETHPy150Open gallantlab/pycortex/cortex/svgroi.py/ROIpack.get_texture--crossover with--dataset/ETHPy150Open python-diamond/Diamond/src/collectors/nagiosperfdata/test/testnagiosperfdata.py/TestNagiosPerfdataCollector.test_collect_should_list_fixtures