code: def _bse_cli_lookup_by_role(args):
      '''Handles the lookup-by-role subcommand'''
      return api.lookup_basis_by_role(args.basis, args.role, args.data_dirf _bse_cli_lookup_by_role(args):
      '''Handles the lookup-by-role subcommand'''
      return api.lookup_basis_by_role(args.basis, args.role, args.data_dir)
docs: Handles the lookup-by-role subcommand