code: def in_state(obj, states, stateflowid='review_state'):
      
      if not states:
          return False
      obj_state = getCurrentState(obj, stateflowid=stateflowid)
      return obj_state in states
docs: Returns if the object passed matches with the states passed in