def anonymize_info(info):
 if (not isinstance(info, Info)):
  raise ValueError('self must be an Info instance.')
 if (info.get('subject_info') is not None):
  del info['subject_info']
 info['meas_date'] = [0, 0]
 for key_1 in ('file_id', 'meas_id'):
  key = info.get(key_1)
  if (key is None):
   continue
  for key_2 in ('secs', 'msecs', 'usecs'):
   if (key_2 not in key):
    continue
   info[key_1][key_2] = 0
 return info

def anonymize_info ( info ) : if ( not isinstance ( info , Info ) ) : raise ValueError ( 'self must be an Info instance.' ) if ( info . get ( 'subject_info' ) is not None ) : del info [ 'subject_info' ] info [ 'meas_date' ] = [ 0 , 0 ] for key_1 in ( 'file_id' , 'meas_id' ) : key = info . get ( key_1 ) if ( key is None ) : continue for key_2 in ( 'secs' , 'msecs' , 'usecs' ) : if ( key_2 not in key ) : continue info [ key_1 ] [ key_2 ] = 0 return info
anonymize measurement information in place .