extract_function_examples: Extract Examples from a Package Function
Description
This function extracts and cleans the examples section from a specific
function's documentation in an R package. It uses the `tools` package
to access the Rd database and extracts examples using `tools::Rd2ex()`.
The output is cleaned to remove metadata headers and formatting artifacts.