code: def test_node_attribute_xy_directed(self):
      attrxy = sorted(nx.node_attribute_xy(self.D, "fish"))
      attrxy_result = sorted(
          [
              ("one", "one"),
              ("two", "two"),
              ("one", "red"),
              ("two", "blue"),
          ]
      )
      assert attrxy == attrxy_result
  
file_path: networkx/networkx/algorithms/assortativity/tests/test_pairs.py
imports: import networkx
  from .base_test import BaseTestAttributeMixing, BaseTestDegreeMixing
label_desc: Use image node_id 3 for calling the TestAttributeMixingXY obj's underlying member method code with example usage: obj.test_node_attribute_xy_directed() without return types