code: def _expand_scalar_array_shape(array: np.ndarray) -> np.ndarray:
      return array if array.shape else np.expand_dims(array, axis=-1)
  
file_path: acme/acme/wrappers/expand_scalar_observation_shapes.py
imports: from typing import Any
  from acme.wrappers import base
  import dm_env
  from dm_env import specs
  import numpy
  import tree
label_desc: Use image node_id 2 for calling a global function with example usage: _expand_scalar_array_shape(array) and returns: unknown