How to get Sender_id

tracker = tracker.current_state()[‘sender_id’] File “/home/ll/.local/lib/python2.7/site-packages/rasa_core_sdk/init.py”, line 66, in current_state latest_event_time = self.events[-1].timestamp AttributeError: ‘dict’ object has no attribute ‘timestamp’

Is my code wrong?