BERT has word-piece tokens, so if you are after the associated IDs for these word-piece tokens, you can find these.
from transformers import AutoModel
checkpoint = 'bert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
tokenizer.vocab