def find_tag(fid, node, findkind):
 if (node['directory'] is not None):
  for subnode in node['directory']:
   if (subnode.kind == findkind):
    return read_tag(fid, subnode.pos)
 return None

def find_tag ( fid , node , findkind ) : if ( node [ 'directory' ] is not None ) : for subnode in node [ 'directory' ] : if ( subnode . kind == findkind ) : return read_tag ( fid , subnode . pos ) return None
find tag in an open fif file descriptor .