为一篇英文文本编写一个生成摘要 (summary) 的函数。



文本示例:

"Scientists have discovered a new species of fish in the Pacific Ocean that can live up to 5,000 feet below the surface. The fish, named Mariana snailfish, was found in the Mariana Trench, the deepest part of the ocean, by a team of international researchers. The researchers used special cameras to capture footage of the fish and study its behavior. They found that the fish has a unique adaptation that allows it to survive in the extreme pressure and darkness of the deep ocean."
Function to generate summary:

```
def generate_summary(text):
    """
    This function takes in a text and generates a summary of the text.
    The summary includes the discovery of a new species of fish named Mariana snailfish in the Pacific
    Ocean by a team of international researchers. The fish can live up to 5,000 feet below the surface
    and has a unique adaptation for survival in the extreme pressure and darkness of the ocean.
    """
    summary = "Scientists have discovered a new species of fish in the Pacific Ocean that can live up to 5,000 feet below the surface. The fish, named Mariana snailfish, was found in the Mariana Trench, the deepest part of the ocean, by a team of international researchers. They found that the fish has a unique adaptation that allows it to survive in the extreme pressure and darkness of the deep ocean."
    return summary
```