docstr: Add 'Co-authored-by' strings to the PR body based on the prior commits
  in the PR
docstr_tok: ["Add","'Co-authored-by","'","strings","to","the","PR","body","based","on","the","prior","commits","in","the","PR"]
code: def body_with_co_authors(self) -> str:
      """
      Add 'Co-authored-by' strings to the PR body based on the prior commits
      in the PR
      """
      body = self.processed_body()
      author_lines = self.co_authors()
      logging.info(f"Found co-authors: author_lines={author_lines}")
      full_author_lines = [
          f"Co-authored-by: {author_line}"
          for author_line in author_lines
      ]
  
      authors_to_add = []
      for author_line in author_lines:
          if author_line not in body:
              authors_to_add.append(f"Co-authored-by: {author_line}")
  
      if len(authors_to_add) > 0:
          # If the line isn't already in the PR body (it could have been
          # added manually), put it in
          full_author_text = "\n".join(authors_to_add)
          body = f"{body}\n\n{full_author_text}"
  
      return body
  
imports: import os
  import json
  import argparse
  import sys
  import warnings
  import logging
  import traceback
  import re
  from typing import Dict, Any, List, Optional, Callable, Union
  from pathlib import Path
  from git_utils import git, GitHubRepo, parse_remote, post
  from cmd_utils import init_log
label_desc: Use image node_id 17 for calling the PR obj's underlying member method code with example usage: obj.body_with_co_authors() and returns: body