code: def _indent(x, num_spaces):
      indent_str = " " * num_spaces
      lines = x.split("\n")
      assert not lines[-1]
      # skip the final line because it's empty and should not be indented.
      return "\n".join(indent_str + line for line in lines[:-1]) + "\n"
  
imports: import collections
  from types import MappingProxyType
  from typing import Any, Dict, Hashable, Mapping, Tuple, TypeVar, Union
  import jax
  from flax import serialization
label_desc: Use image node_id 1 for calling a global function with example usage: _indent(x, num_spaces) and returns: unknown