docstr: Returns list of specified branch commits
docstr_tok: ["Returns","list","of","specified","branch","commits"]
code: def list_branch_commits(self, branch):
      """
      Returns list of specified branch commits
      """
      branch_path = os.path.join(self.path, branch.strip())
  
      commits = []
  
      if not os.path.isdir(branch_path):
          return commits
  
      for i in os.listdir(branch_path):
          if (
              os.path.isdir(os.path.join(branch_path, i))
              and i != AIM_COMMIT_INDEX_DIR_NAME
          ):
              commits.append(i)
      return commits
  
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 6 for calling the AimRepo obj's underlying member method code with example usage: obj.list_branch_commits(branch) and returns: commits, commits