code: def _accuracy(seq1, seq2):
      """Token-level accuracy."""
      seq1, seq2 = np.array(seq1), np.array(seq2)
      max_length = max(seq1.shape[-1], seq2.shape[-1])
      min_length = min(seq1.shape[-1], seq2.shape[-1])
      seq1s, seq2s = seq1[..., :min_length], seq2[..., :min_length]
      return np.sum(np.equal(seq1s, seq2s)) / max_length
  
file_path: trax/trax/rl/envs/data_envs.py
imports: import gym
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: _accuracy(seq1, seq2) and returns: unknown