docstr: Returns list of existing branches
docstr_tok: ["Returns","list","of","existing","branches"]
code: def list_branches(self) -> list:
      """
      Returns list of existing branches
      """
      if self.config.get("branches") is None:
          return []
  
      return list(
          filter(
              lambda b: b != "",
              map(
                  lambda b: b.get("name") if b else "",
                  self.config.get("branches"),
              ),
          )
      )
  
file_path: aim/aim/cli/upgrade/_legacy_repo/repo/repo.py
imports: import os
  import json
  import re
  import hashlib
  from aim.sdk.configs import get_aim_repo_name
  from aim.sdk.utils import clean_repo_path
  from aim.cli.upgrade._legacy_repo.repo.utils import get_experiment_run_path
  from aim.cli.upgrade._legacy_repo.configs import AIM_CONFIG_FILE_NAME, AIM_COMMIT_INDEX_DIR_NAME
label_desc: Use image node_id 5 for calling the AimRepo obj's underlying member method code with example usage: obj.list_branches() and returns: list, list