code: def is_text_type(text):
      
      if isinstance(text, six.text_type) or isinstance(text, six.string_types):
          return True
  
      return False
docs: Check if given parameter is a string or not
  
      Parameters
      ----------
      text : *
          Parameter to be checked for text type
  
      Returns
      -------
      bool
          Whether parameter is a string or not