human
Can you provide a the Python code you requested given the following:
Write a function to check whether an element exists within a tuple. Here is a solution in Python:
assistant
#Here is the Python code you requested.
 def check_tuplex(tuplex,tuple1): 
  if tuple1 in tuplex:
    return True
  else:
     return False