code: def create_buffer(self, ignore_unsupported=False):
          
          bufferdict = OrderedDict()
          for branch in self.iterbranches():
              # only include activated branches
              if not self.GetBranchStatus(branch.GetName()):
                  continue
              if not BaseTree.branch_is_supported(branch):
                  log.warning(
                      "ignore unsupported branch `{0}`".format(branch.GetName()))
                  continue
              bufferdict[branch.GetName()] = Tree.branch_type(branch)
          self.set_buffer(TreeBuffer(
              bufferdict,
              ignore_unsupported=ignore_unsupported))
docs: Create this tree's TreeBuffer