Write a function that gets a sequence and value and returns `true/false` depending on whether the variable exists in a multidimentional sequence.
Example:
```
locate(['a','b',['c','d',['e']]],'e'); // should return true
locate(['a','b',['c','d',['e']]],'a'); // should return true
locate(['a','b',['c','d',['e']]],'f'); // should return false
```
def locate(arr, item):
    return item in arr or any(isinstance(e, (list, tuple)) and locate(e, item) for e in arr)
def locate(arr, item):
    return item in arr or any(isinstance(e, (list, tuple)) and locate(e, item) for e in arr)