def _ensure_decoded(s):
 if isinstance(s, np.bytes_):
  s = s.decode('UTF-8')
 return s

def _ensure_decoded ( s ) : if isinstance ( s , np . bytes_ ) : s = s . decode ( 'UTF-8' ) return s
if we have bytes .