code: def test_subs_unexpected_hashable_key():
      class UnexpectedButHashable:
          def __init__(self):
              self.name = "a"
  
          def __hash__(self):
              return hash(self.name)
  
          def __eq__(self, other):
              return isinstance(other, UnexpectedButHashable)
  
      assert subs(
          (id, UnexpectedButHashable()), UnexpectedButHashable(), 1
      ) == (id, 1)
  
imports: import pickle
  from collections import namedtuple
  import pytest
  from flash.core.serve.dag.task import flatten, get, get_dependencies, get_deps, istask, literal, preorder_traversal, quote, subs
  from flash.core.serve.dag.utils_test import add, inc
  from flash.core.utilities.imports import _TOPIC_SERVE_AVAILABLE
label_desc: Use image node_id 17 for calling a global function with example usage: test_subs_unexpected_hashable_key() and returns: hash, isinstance