code: def royal_road1(individual, order):
      """Royal Road Function R1 as presented by Melanie Mitchell in :
      "An introduction to Genetic Algorithms".
      """
      nelem = len(individual) // order
      max_value = int(2**order - 1)
      total = 0
      for i in range(nelem):
          value = int(
              "".join(
                  map(str, individual[i * order : i * order + order])
              ),
              2,
          )
          total += int(order) * int(value / max_value)
      return (total,)
  
file_path: deap/deap/benchmarks/binary.py
imports: from functools import wraps
label_desc: Use image node_id 7 for calling a global function with example usage: royal_road1(individual, order) and returns: total