code: def _make_mimesis(
      field, schema, npartitions, records_per_partition, seed=None
  ):
      """
      Make a Dask Bag filled with data randomly generated by the mimesis projet
  
      Parameters
      ----------
      field: dict
          keyword arguments to pass to ``mimesis.Field``
      schema: Callable[Field] -> dict
          The schema to use to generate the data
      npartitions: int
      records_per_partition: int
      seed: int, None
          Seed for random data
  
      Returns
      -------
      Dask Bag
  
      See Also
      --------
      make_people
      """
      import dask.bag as db
      from dask.base import tokenize
  
      field = field or {}
  
      random_state = random.Random(seed)
      seeds = [
          random_state.randint(0, 1 << 32) for _ in range(npartitions)
      ]
  
      name = "mimesis-" + tokenize(
          field, schema, npartitions, records_per_partition, seed
      )
      dsk = {
          (name, i): (
              _generate_mimesis,
              field,
              schema,
              records_per_partition,
              seed,
          )
          for i, seed in enumerate(seeds)
      }
  
      return db.Bag(dsk, name, npartitions)
  
imports: from __future__ import annotations
  import random
  from packaging.version import Version
  from dask.utils import import_required
label_desc: Use image node_id 3 for calling a global function with example usage: _make_mimesis(field, schema, npartitions, records_per_partition, seed) and returns: db