code: def element_not_focused(step, id):
      
  
      elem = world.browser.find_element_by_xpath(str('id("{id}")'.format(id=id)))
      focused = world.browser.switch_to_active_element()
  
      assert_false(step, elem == focused)
docs: Check if the element is not focused