code: def _bse_cli_list_basis_sets(args):
      '''Handles the list-basis-sets subcommand'''
      metadata = api.filter_basis_sets(args.substr, args.family, args.role, args.data_dir)
  
      if args.no_description:
          liststr = metadata.keys()
      else:
          liststr = format_columns([(k, v['description']) for k, v in metadata.items()])
  
      return '\n'.join(liststrf _bse_cli_list_basis_sets(args):
      '''Handles the list-basis-sets subcommand'''
      metadata = api.filter_basis_sets(args.substr, args.family, args.role, args.data_dir)
  
      if args.no_description:
          liststr = metadata.keys()
      else:
          liststr = format_columns([(k, v['description']) for k, v in metadata.items()])
  
      return '\n'.join(liststr)
docs: Handles the list-basis-sets subcommand