code: def _preprocess_none(t) -> np.ndarray:
      if t is None:
          return np.array(0.0, dtype=np.float32)
      else:
          return np.asarray(t)
  
file_path: dm-haiku/examples/impala/util.py
imports: import collections
  from absl import logging
  import dm_env
  import numpy
  import tree
label_desc: Use image node_id 1 for calling a global function with example usage: _preprocess_none(t) and returns: np, np