code: def create_inner_out_logp(value_map):
      """Create a log-likelihood inner-output.
  
      This is intended to be use with `get_random_outer_outputs`.
  
      """
      res = []
      for old_inner_out_var, new_inner_in_var in value_map.items():
          logp = _logprob_helper(old_inner_out_var, new_inner_in_var)
          if new_inner_in_var.name:
              logp.name = f"logp({new_inner_in_var.name})"
          res.append(logp)
  
      return res
  
imports: import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  from pytensor import Mode
  from pytensor.raise_op import assert_op
  from pytensor.scan.utils import ScanArgs
  from scipy import stats
  from pymc.logprob.abstract import _logprob_helper
  from pymc.logprob.basic import conditional_logp, logp
  from pymc.logprob.scan import construct_scan, convert_outer_out_to_in, get_random_outer_outputs
  from pymc.testing import assert_no_rvs
label_desc: Use image node_id 1 for calling a global function with example usage: create_inner_out_logp(value_map) and returns: res