code: def bids_entities():
      """Return a dictionary of BIDS entities.
  
      Entities are listed in the order they should appear in a filename.
  
      https://bids-specification.readthedocs.io/en/stable/appendices/entities.html # noqa
  
      Note that:
  
      - this only contains the entities for functional data
  
      https://github.com/bids-standard/bids-specification/blob/master/src/schema/rules/files/raw/func.yaml#L13 # noqa
      https://github.com/bids-standard/bids-specification/blob/master/src/schema/rules/files/deriv/imaging.yaml#L29 # noqa
  
      Returns
      -------
      Dictionary of raw and derivatives entities : dict[str, list[str]]
  
      """
      return {
          "raw": [
              "sub",
              "ses",
              "task",
              "acq",
              "ce",
              "rec",
              "dir",
              "run",
              "echo",
              "part",
          ],
          "derivatives": ["hemi", "space", "res", "den", "desc"],
      }
  
imports: from __future__ import annotations
label_desc: Use image node_id 1 for calling a global function with example usage: bids_entities() and returns: dict