docstr: Get the dot nodes of the submodel where the enclosing model should
  connect the edges of the steps that precede and follow the submodel.
docstr_tok: ["Get","the","dot","nodes","of","the","submodel","where","the","enclosing","model","should","connect","the","edges","of","the","steps","that","precede","and","follow","the","submodel","."]
code: def get_internal_dot_nodes(self, model, outer_port):
      """Get the dot nodes of the submodel where the enclosing model should
      connect the edges of the steps that precede and follow the submodel.
      """
      dot_input_dst = []
      for input in model._internal_inputs:
          dst = self.node_names[outer_port, input.node]
          dot_input_dst.append(dst)
      dot_target_dst = []
      for target in model._internal_targets:
          dst = self.node_names[outer_port, target.node]
          dot_target_dst.append(dst)
      dot_output_src = []
      for output in model._internal_outputs:
          src = self.node_names[outer_port, output.node]
          dot_output_src.append(src)
      return dot_output_src, dot_input_dst, dot_target_dst
  
file_path: baikal/baikal/plot.py
imports: import io
  import os
  from typing import Optional
  from baikal import Model
  from baikal._core.utils import make_name, safezip2
label_desc: Use image node_id 3 for calling the _DotTransformer obj's underlying member method code with example usage: obj.get_internal_dot_nodes(model, outer_port) and returns: dot_output_src,  dot_input_dst,  dot_target_dst