code: def to_numpy(nest: types.NestedTensor) -> types.NestedArray:
      """Converts a nest of Tensors to a nest of numpy arrays."""
      return tree.map_structure(lambda x: x.numpy(), nest)
  
imports: import functools
  from typing import List, Optional, Union
  from acme import types
  from acme.utils import tree_utils
  import sonnet
  import tensorflow
  import tree
label_desc: Use image node_id 9 for calling a global function with example usage: to_numpy(nest) and returns: tree