code: def _GetDenseDimensions(list_of_lists):
      """Returns the inferred dense dimensions of a list of lists."""
      if not isinstance(list_of_lists, (list, tuple)):
          return []
      elif not list_of_lists:
          return [0]
      else:
          return [len(list_of_lists)] + _GetDenseDimensions(
              list_of_lists[0]
          )
  
imports: import numpy
  from tensorboard.compat.proto import tensor_pb2
  from tensorboard.compat.tensorflow_stub import dtypes, compat, tensor_shape
label_desc: Use image node_id 18 for calling a global function with example usage: _GetDenseDimensions(list_of_lists) and returns: list, list, unknown