code: def ones(shape, dtype_name="float"):
      result = DistArray(shape)
      for index in np.ndindex(*result.num_blocks):
          result.object_refs[index] = ra.ones.remote(
              DistArray.compute_block_shape(index, shape),
              dtype_name=dtype_name,
          )
      return result
  
imports: import numpy
  import ray
  import ray.experimental.array.remote
label_desc: Use image node_id 4 for calling a global function with example usage: ones(shape, dtype_name) and returns: result