code: def inspect_file(path):
      
      with open(path, 'rb') as f:
          labels, count = inspect(tx.decode(line) for line in f)
      return labels, count
docs: Inspect SDFile structure
  
      Returns:
          tuple: (data label list, number of records)