docs: def _build_regular_workflow(json_spec):
      """
      Precondition: json_spec must be validated
      """
      workflow_id = dxpy.api.workflow_new(json_spec)["id"]
      dxpy.api.workflow_close(workflow_id)
      return workflow_id