code: def _compute_density_property(graph_nx, ascending=True):
      direction = -1 if ascending else 1
      property_values = direction * np.array(
          list(A.clustering(graph_nx).values())
      )
      return property_values
  
imports: from __future__ import absolute_import
  import errno
  import hashlib
  import os
  import pickle
  import sys
  import warnings
  import networkx.algorithms
  import numpy
  import requests
  from tqdm import tqdm
  from ..None import backend
  from .graph_serialize import load_graphs, load_labels, save_graphs
  from .tensor_serialize import load_tensors, save_tensors
label_desc: Use image node_id 21 for calling a global function with example usage: _compute_density_property(graph_nx, ascending) and returns: property_values