code: def _resource(resource_type, name: str) -> str:
      """Return the full path filename of a resource.
  
      :param str resource_type: The type of the resource.
      :param str  name: The name of the resource.
      :returns: The full path filename of the fixture data set.
      :rtype: str
      :raises FileNotFoundError: If the resource cannot be found.
      """
      full_path = _RESOURCES[resource_type].get(name, None)
  
      if full_path and full_path.exists():
          return str(full_path)
  
      raise FileNotFoundError(
          f'Could not find {resource_type} "{name!s}"! Does it exist?'
      )
  
file_path: popmon/popmon/resources.py
imports: import json
  import pathlib
  from jinja2 import Environment, FileSystemLoader
  from pkg_resources import resource_filename
  import popmon
label_desc: Use image node_id 4 for calling a global function with example usage: _resource(resource_type, name) and returns: str