code: def _GetInode(self, inode_value):
      
      if isinstance(inode_value, py2to3.INTEGER_TYPES):
        return inode_value
  
      if isinstance(inode_value, float):
        return int(inode_value)
  
      if not isinstance(inode_value, py2to3.STRING_TYPES):
        return -1
  
      if b'-' in inode_value:
        inode_value, _, _ = inode_value.partition(b'-')
  
      try:
        return int(inode_value, 10)
      except ValueError:
        return -1
docs: Retrieves the inode from the inode value.
  
      Args:
        inode_value (int|str): inode, such as 1 or '27-128-1'.
  
      Returns:
        int: inode or -1 if the inode value cannot be converted to an integer.