code: def generate_csv_with_runs(experiment_id, filename):
      # type: (str, str) -> None
      """
      Generate CSV with all runs for an experiment
      """
      runs = fluent.search_runs(experiment_ids=experiment_id)
      if filename:
          runs.to_csv(filename, index=False)
          click.echo(
              f"Experiment with ID {experiment_id} has been exported as a CSV to file: {filename}."
          )
      else:
          click.echo(runs.to_csv(index=False))
  
file_path: mlflow/mlflow/experiments.py
imports: import os
  import click
  import mlflow
  from mlflow.entities import ViewType
  from mlflow.tracking import _get_store, fluent
  from mlflow.utils.data_utils import is_uri
  from mlflow.utils.string_utils import _create_table
label_desc: Use image node_id 7 for calling a global function with example usage: generate_csv_with_runs(experiment_id, filename) without return types