code: def _all_are_equal(list_of_objects):
      """Helper function to check if all the items in a list are the same."""
      if not list_of_objects:
          return True
      if isinstance(list_of_objects[0], list):
          list_of_objects = [tuple(obj) for obj in list_of_objects]
      return len(set(list_of_objects)) == 1
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  from typing import Any, List, Optional, Tuple, Union
  import numpy
  import six
  from six.moves import range
  from six.moves import zip
  import tensorflow
label_desc: Use image node_id 12 for calling a global function with example usage: _all_are_equal(list_of_objects) and returns: unknown, True