def _local_file(self, contents='Dummy content\n'):
        handle, path = tempfile.mkstemp()
        if contents is not None:
            with open(path, 'w') as f:
                f.write(contents)
        self.addCleanup(partial(os.close, handle))
        return path
Calculates the endpoints of the links as well as the labels for the
dataset/ETHPy150Open amnong/easywebdav/tests/__init__.py/TestCase._local_file--crossover with--dataset/ETHPy150Open scipy/scipy/scipy/cluster/hierarchy.py/_dendrogram_calculate_info