code: def _filter_name(model_name):
      """
      Need to get "garnet_1layer" from "garnet_1layer.json" for loading of data and configuration files
      """
      filtered_name = None
  
      if model_name.endswith(".json") or model_name.endswith(".onnx"):
          filtered_name = model_name[:-5]
      elif model_name.endswith(".pt") or model_name.endswith(".pb"):
          filtered_name = model_name[:-3]
  
      return filtered_name
  
file_path: hls4ml/hls4ml/utils/example_models.py
imports: import json
  import pprint
  from urllib.request import urlretrieve
  import yaml
  from .config import create_config
label_desc: Use image node_id 5 for calling a global function with example usage: _filter_name(model_name) and returns: filtered_name