def makeAnno ( p, anntype ):

  # Create an annotation
  tmpfile = tempfile.NamedTemporaryFile()
  h5fh = h5py.File ( tmpfile.name )

  # Create the top level annotation id namespace
  idgrp = h5fh.create_group ( str(0) )
  mdgrp = idgrp.create_group ( "METADATA" )
  ann_author='Unit Test'
  mdgrp.create_dataset ( "AUTHOR", (1,), dtype=h5py.special_dtype(vlen=str), data=ann_author )

  idgrp.create_dataset ( "ANNOTATION_TYPE", (1,), np.uint32, data=anntype )

  h5fh.flush()
  tmpfile.seek(0)

  p.annoid =  putAnnotation (p, tmpfile)

  tmpfile.close()
Print colorize text.
dataset/ETHPy150Open neurodata/ndstore/test/ramon.py/makeAnno--crossover with--dataset/ETHPy150Open marcusbuffett/command-line-chess/build/lib/chess/termcolor.py/cprint