You can specify like this:
optionA = [element.text for element in soup.find('ul').find_all('small', {'class':'label'})]
Will first find the parent <ul>
and than all <small>
optionB = [element.text for element in soup.select('ul small.label')]
Alternativ, use the css selectors, in my opinion much better for chaining tags and classes.
Example
from bs4 import BeautifulSoup
html = '''<ul>
<li><small class="label">Coffee</small></li>
<li><small class="label">Tea</small></li>
<li><small class="label">Milk</small></li>
</ul>'''
soup = BeautifulSoup(html,)
optionA = [element.text for element in soup.find('ul').find_all('small', {'class':'label'})]
optionB = [element.text for element in soup.select('ul small.label')]
print(optionA)
print(optionB)
Output
['Coffee', 'Tea', 'Milk']
['Coffee', 'Tea', 'Milk']
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…