code: def extract_tests_from_file(filename):
      with open(filename, "r") as file:
          try:
              module = ast.parse(file.read())
          except SyntaxError:
              print(f"Syntax error in file: {filename}")
              return []
  
          return [
              f"{filename}::{node.name}"
              for node in module.body
              if is_test_function(node)
          ]
  
imports: import os
  import random
  import ast
label_desc: Use image node_id 2 for calling a global function with example usage: extract_tests_from_file(filename) and returns: unknown, list