code: def substitute_inner_policy_raw(
      raw_policy, inner_policy
  ):  # pylint: disable=invalid-name
      """Substitutes the weights/state of the inner model in a RawPolicy."""
      return raw_policy[:1] + [inner_policy] + raw_policy[2:]
  
imports: import functools
  import gym
  import numpy
  from trax import layers
  from trax.fastmath import numpy
  from trax.rl import space_serializer
label_desc: Use image node_id 8 for calling a global function with example usage: substitute_inner_policy_raw(raw_policy, inner_policy) and returns: unknown