code: def is_Tuple_ellipsis(tpl):
      
      try:
          return tpl.__tuple_use_ellipsis__
      except AttributeError:
          try:
              if tpl.__args__ is None:
                  return False
              # Python 3.6
              if tpl.__args__[-1] is Ellipsis:
                  return True
          except AttributeError:
              pass
          return False
docs: Python version independent function to check if a typing.Tuple object
      contains an ellipsis.