How do I add features on a local dataset

Hey, I was reading Create a dataset loading script — datasets 1.16.1 documentation and I am confused about how to add attributes to my local dataset. Can anyone explain how do I do this on a local dataset?

Without it I am getting:-

  File "/opt/conda/lib/python3.7/collections/__init__.py", line 1027, in __
getitem__
    raise KeyError(key)
KeyError: 'premise'

Hi ! Can you detail what kind of data you have locally and the code you used to get this error ?