code: def schema_data_generator_example(schema):
      """
      Generates dummy data for a given schema.
  
      :param schema: unischema instance
      :return: A dictionary of schema dummy values.
      """
      fields_as_dict = {}
      for field in schema.fields.values():
          if field.numpy_dtype is Decimal:
              fields_as_dict[field.name] = Decimal("0.0")
          else:
              field_shape = tuple(
                  [10 if dim is None else dim for dim in field.shape]
              )
              fields_as_dict[field.name] = np.zeros(
                  field_shape, dtype=field.numpy_dtype
              )
      return fields_as_dict
  
file_path: petastorm/petastorm/test_util/reader_mock.py
imports: from decimal import Decimal
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: schema_data_generator_example(schema) and returns: fields_as_dict