How to tap and hold in Appium?

How can I tap and hold in Appium?

Hi Helen,

To tap and hold in Appium, refer to this:

actions = TouchAction(driver)
actions.long_press(element)
actions.perform()