Where To get a State?

Hi, can anyone explain how to find the state. How would we call this method from a search class ? Thanks.
def calc_angle_to_goal(self, state: State) → float: