code: def test_dataloader_from_nemo_manifest_has_custom_fields(
      nemo_manifest_path: Path,
  ):
      config = OmegaConf.create(
          {
              "manifest_filepath": nemo_manifest_path,
              "sample_rate": 16000,
              "shuffle": True,
              "use_lhotse": True,
              "num_workers": 0,
              # lhotse specific
              "use_bucketing": False,
              "batch_duration": 4.0,  # seconds
              "shuffle_buffer_size": 10,
              "seed": 0,
          }
      )
  
      class _IdentityDataset:
          def __getitem__(self, cuts):
              return cuts
  
      dl = get_lhotse_dataloader_from_config(
          config=config,
          global_rank=0,
          world_size=1,
          dataset=_IdentityDataset(),
      )
  
      batch = next(iter(dl))
      for cut in batch:
          assert isinstance(cut.custom, dict)
          assert "my-custom-field" in cut.custom
  
imports: from io import BytesIO
  from itertools import islice
  from pathlib import Path
  from typing import Dict, List, Tuple
  import pytest
  import torch
  from omegaconf import OmegaConf
  from nemo.collections.common.data.lhotse import get_lhotse_dataloader_from_config
label_desc: Use image node_id 10 for calling a global function with example usage: test_dataloader_from_nemo_manifest_has_custom_fields(nemo_manifest_path) and returns: cuts