code: def _typecheck_fsnative(path):
      
  
      if not isinstance(path, fsnative_type):
          return False
  
      if PY3 or is_win:
          if u"\x00" in path:
              return False
  
          if is_unix:
              try:
                  path.encode(_encoding, "surrogateescape")
              except UnicodeEncodeError:
                  return False
      elif b"\x00" in path:
          return False
  
      return True
docs: Args:
          path (object)
      Returns:
          bool: if path is a fsnative