code: def get_cached_filepath(
      data_dir, model_name, seq_length, task_name, set_type="train"
  ):
      """get cached file name
  
      Arguments:
          data_dir {str} -- data directory string
          model_name {str} -- model name
          seq_length {int} -- max sequence length
          task_name {str} -- name of task
  
      Keyword Arguments:
          set_type {str} -- set type (choose from train/dev/test) (default: {"train"})
  
      Returns:
          str -- cached filename
      """
      cached_features_file = os.path.join(
          data_dir,
          "cached_{}_{}_{}_{}".format(
              set_type,
              list(filter(None, model_name.split("/"))).pop(),
              str(seq_length),
              str(task_name),
          ),
      )
      return cached_features_file
  
imports: from __future__ import absolute_import, division, print_function
  import csv
  import os
  import random
  import sys
  from abc import ABC
  from io import open
  from typing import List, Tuple
label_desc: Use image node_id 6 for calling a global function with example usage: get_cached_filepath(data_dir, model_name, seq_length, task_name, set_type) and returns: cached_features_file