code: def data_to_n(data):
      """Read initial one-, four- or eight-unit value from graph6
      integer sequence.
  
      Return (value, rest of seq.)"""
      if data[0] <= 62:
          return data[0], data[1:]
      if data[1] <= 62:
          return (data[1] << 12) + (data[2] << 6) + data[3], data[4:]
      return (
          (data[2] << 30)
          + (data[3] << 24)
          + (data[4] << 18)
          + (data[5] << 12)
          + (data[6] << 6)
          + data[7],
          data[8:],
      )
  
file_path: networkx/networkx/readwrite/graph6.py
imports: from itertools import islice
  import networkx
  from networkx.exception import NetworkXError
  from networkx.utils import not_implemented_for, open_file
label_desc: Use image node_id 7 for calling a global function with example usage: data_to_n(data) and returns: unknown,  data, data,  data, unknown,  data