code: def normalize(
      state: PopArtState, unnormalized: Array, indices: Array
  ) -> Array:
      """Returns normalized values.
  
      Args:
        state: The PopArt summary stats.
        unnormalized: unnormalized values that we applied PopArt to.
        indices: Which scale and shifts to use
  
      Returns:
        Normalized PopArt values.
      """
      scale = state.scale[indices]
      shift = state.shift[indices]
      normalized = (unnormalized - shift) / scale
      return normalized
  
file_path: rlax/rlax/_src/pop_art.py
imports: import collections
  from typing import Mapping, Tuple
  import chex
  import jax
  import jax.numpy
  from rlax._src import base
label_desc: Use image node_id 2 for calling a global function with example usage: normalize(state, unnormalized, indices) and returns: normalized