code: def enumerate_all_possible_1d_sharding(mesh_dim_0, dim_size):
      dim_partition_list = []
      # enumerate all the 1D sharding cases
      for i in range(dim_size):
          dim_partition_dict_0 = {i: [mesh_dim_0]}
          dim_partition_list.append(dim_partition_dict_0)
  
      return dim_partition_list
  
file_path: ColossalAI/colossalai/auto_parallel/tensor_shard/utils/sharding.py
imports: import operator
  from copy import deepcopy
  from functools import reduce
  from typing import Dict
  import torch
  from colossalai.tensor.sharding_spec import ShardingSpec
label_desc: Use image node_id 4 for calling a global function with example usage: enumerate_all_possible_1d_sharding(mesh_dim_0, dim_size) and returns: dim_partition_list