def METHOD_NAME(source: str) -> List[str]:
    """
    Extracts a list of imported modules from the given source code.
    Parameters:
    - source (str): The source code to be analyzed.
    Returns:
    - imported_modules (list[str]): A list of import statements.
    """
    # Parse the source code into an abstract syntax tree
    source = ScaleneAnalysis.strip_magic_line(source)
    tree = ast.parse(source)
    imported_modules = []
    # Iterate through the nodes in the syntax tree
    for node in ast.walk(tree):
        # Check if the node represents an import statement
        if isinstance(node, (ast.Import, ast.ImportFrom)):
            imported_modules.append(ast.unparse(node))
    return imported_modules