(image_id, total_num_examples)
return image_id * gap
Returns an image key in the form of a 128-bit integer.

  The gap between keys is chosen as to occupy as much of the space of 128-bit
  numbers as possible, which ensures that the temporary buckets the examples are
  written to are as balanced as possible.

  Args:
    image_id: image ID, in [0, total_num_examples).
    total_num_examples: total number of examples in the data source.

  Returns:
    The image key.
Returns an image key in the form of a 128-bit integer.
Returns an image key in the form of a 128 - bit integer .
def _image_key(image_id, total_num_examples):
  """Returns an image key in the form of a 128-bit integer.

  The gap between keys is chosen as to occupy as much of the space of 128-bit
  numbers as possible, which ensures that the temporary buckets the examples are
  written to are as balanced as possible.

  Args:
    image_id: image ID, in [0, total_num_examples).
    total_num_examples: total number of examples in the data source.

  Returns:
    The image key.
  """
  gap = int(2 ** 128) // total_num_examples
  return image_id * gap
def _image_key ( image_id , total_num_examples ) : gap = int ( 2 ** 128 ) // total_num_examples return image_id * gap