code: def get_top_comments(_data):
      # Get all lines where comments should exist
      lines_to_extract = []
      for i, line in enumerate(_data):
          # If empty line, skip
          if line in ["", "\n", "", "\r", "\r\n"]:
              continue
          # If it is a comment line, we should get it
          if line.startswith("#"):
              lines_to_extract.append(i)
          # Assume all copyright headers occur before any import statements not enclosed in a comment block
          elif "import" in line:
              break
  
      comments = []
      for line in lines_to_extract:
          comments.append(_data[line])
  
      return comments
  
imports: import argparse
  import re
  import sys
  from datetime import datetime
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: get_top_comments(_data) and returns: comments