class_docstr: Does not split records, essentially reads the whole file.
docstr: Check whether `buf` contains binary data.
  
  Returns True if `buf` contains any non-utf-8 characters.
  
  Args:
      buf (bytes): data to inspect
  
  Returns:
      True if data is binary, otherwise False
docstr_tok: ["Check","whether","`","buf","`","contains","binary","data",".","Returns","True","if","`","buf","`","contains","any","non-utf-8","characters",".","Args",":","buf","(","bytes",")",":","data","to","inspect","Returns",":","True","if","data","is","binary",",","otherwise","False"]
code: def _is_binary(self, buf):
      """Check whether `buf` contains binary data.
  
      Returns True if `buf` contains any non-utf-8 characters.
  
      Args:
          buf (bytes): data to inspect
  
      Returns:
          True if data is binary, otherwise False
      """
      return bool(buf.translate(None, self._textchars))
  
imports: from __future__ import absolute_import
  import os
  import platform
  import sys
  import tempfile
  from abc import ABCMeta
  from abc import abstractmethod
  from six import with_metaclass
  from six.moves.urllib.parse import urlparse
  import sagemaker.amazon.common
  import sagemaker.local.utils
  import sagemaker.utils
label_desc: Use image node_id 2 for calling the NoneSplitter obj's underlying member method code with example usage: obj._is_binary(buf) and returns: bool