code: def _collect_activations(
      model_path, layers, csv_filename, output_directory
  ):
      return collect_activations(
          model_path,
          layers,
          dataset=csv_filename,
          output_directory=output_directory,
      )
  
file_path: ludwig/tests/integration_tests/test_collect.py
imports: import os
  import shutil
  import numpy
  import torch
  from ludwig.api import LudwigModel
  from ludwig.collect import collect_activations, collect_weights, print_model_summary
  from ludwig.constants import BATCH_SIZE, ENCODER, TRAINER, TYPE
  from ludwig.utils.torch_utils import get_torch_device
  from tests.integration_tests.utils import category_feature, ENCODERS, generate_data, sequence_feature
label_desc: Use image node_id 4 for calling a global function with example usage: _collect_activations(model_path, layers, csv_filename, output_directory) and returns: collect_activations