<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_edges( edges: Mapping[str, Any], filename: str, jsonlines: bool = False, gzipflag: bool = False, yaml: bool = False, ):
 """Write edges to file Args: edges (Mapping[str, Any]):
 in edges JSON Schema format filename (str):
 filename to write jsonlines (bool):
 output in JSONLines format? gzipflag (bool):
 create gzipped file? yaml (bool):
 create yaml file? """

    pass