parameters: (broadcast_shape, dim_sizes, list_of_core_dims)
return_statement: return [broadcast_shape + tuple(dim_sizes[dim] for dim in core_dims)
              for core_dims in list_of_core_dims]
docstring: Helper for calculating broadcast shapes with core dimensions.
docstring_summary: Helper for calculating broadcast shapes with core dimensions.
docstring_tokens: Helper for calculating broadcast shapes with core dimensions .
function: def _calculate_shapes(broadcast_shape, dim_sizes, list_of_core_dims):
      """Helper for calculating broadcast shapes with core dimensions."""
      return [broadcast_shape + tuple(dim_sizes[dim] for dim in core_dims)
              for core_dims in list_of_core_dims]
function_tokens: def _calculate_shapes ( broadcast_shape , dim_sizes , list_of_core_dims ) : return [ broadcast_shape + tuple ( dim_sizes [ dim ] for dim in core_dims ) for core_dims in list_of_core_dims ]