code: def _is_path_included(
      config: NestStatisticsConfig, path: Path
  ) -> bool:
      """Returns whether the path is included in the config."""
      # A path is included in the config if it corresponds to a tree node that
      # belongs to a subtree rooted at the node corresponding to some path in
      # the config.
      return any(
          _is_prefix(config_path, path) for config_path in config.paths
      )
  
imports: import dataclasses
  from typing import Any, Optional, Tuple, Union
  from acme import types
  from acme.utils import tree_utils
  import chex
  import jax
  import jax.numpy
  import numpy
  import tree
label_desc: Use image node_id 4 for calling a global function with example usage: _is_path_included(config, path) and returns: any