class_docstr: Make blob objects behave like Python strings.
  
  Expects that classes that use this mixin to have a _strkey() method that
  returns the string to apply string methods to. Using _strkey() instead
  of __str__ ensures consistent behavior between Python 2 and 3.
docstr: Returns a  substring. If index is an integer, returns a Python
  string of a single character. If a range is given, e.g. `blob[3:5]`,
  a new instance of the class is returned.
docstr_tok: ["Returns","a","substring",".","If","index","is","an","integer",",","returns","a","Python","string","of","a","single","character",".","If","a","range","is","given",",","e.g",".","`","blob","[","3:5","]","`",",","a","new","instance","of","the","class","is","returned","."]
code: def __getitem__(self, index):
      """Returns a  substring. If index is an integer, returns a Python
      string of a single character. If a range is given, e.g. `blob[3:5]`,
      a new instance of the class is returned.
      """
      if isinstance(index, int):
          return self._strkey()[index]  # Just return a single character
      else:
          # Return a new blob object
          return self.__class__(self._strkey()[index])
  
imports: from __future__ import absolute_import
  import sys
  from textblob.compat import basestring, implements_to_string, PY2, binary_type
label_desc: Use image node_id 6 for calling the StringlikeMixin obj's underlying member method code with example usage: obj.__getitem__(index) and returns: self, self