class_docstr: Execute using Soma workflow
code: def _submit_graph(self, pyfiles, dependencies, nodes):
      jobs = []
      soma_deps = []
      for idx, fname in enumerate(pyfiles):
          name = os.path.splitext(os.path.split(fname)[1])[0]
          jobs.append(Job(command=[sys.executable, fname], name=name))
      for key, values in list(dependencies.items()):
          for val in values:
              soma_deps.append((jobs[val], jobs[key]))
  
      wf = Workflow(jobs, soma_deps)
      logger.info("serializing workflow")
      Helper.serialize("workflow", wf)
      controller = WorkflowController()
      logger.info("submitting workflow")
      wf_id = controller.submit_workflow(wf)
      Helper.wait_workflow(wf_id, controller)
  
imports: import os
  import sys
  from .base import GraphPluginBase, logger
label_desc: Use image node_id 2 for calling the SomaFlowPlugin obj's underlying member method code with example usage: obj._submit_graph(pyfiles, dependencies, nodes) without return types