def get_node_file_path(node):
    """
    Retrieve the file path referenced by nodes of different types.
    Suppoted types are: Asset, UsdAsset, and Media nodes
    """
    if node.type_name() in ["Asset"]:
        return node.reference_filename()
    elif node.type_name() in ["UsdAsset"]:
        return node.plug("file_path").as_string()
    elif node.type_name() in ["Media"]:
        return node.plug("file").as_string()