def get_host_numa_usage_from_instance(host, instance, free=False, never_serialize_result=False):
 instance_numa_topology = instance_topology_from_instance(instance)
 if instance_numa_topology:
  instance_numa_topology = [instance_numa_topology]
 (host_numa_topology, jsonify_result) = host_topology_and_format_from_host(host)
 updated_numa_topology = numa_usage_from_instances(host_numa_topology, instance_numa_topology, free=free)
 if (updated_numa_topology is not None):
  if (jsonify_result and (not never_serialize_result)):
   updated_numa_topology = updated_numa_topology._to_json()
 return updated_numa_topology

def get_host_numa_usage_from_instance ( host , instance , free = False , never_serialize_result = False ) : instance_numa_topology = instance_topology_from_instance ( instance ) if instance_numa_topology : instance_numa_topology = [ instance_numa_topology ] ( host_numa_topology , jsonify_result ) = host_topology_and_format_from_host ( host ) updated_numa_topology = numa_usage_from_instances ( host_numa_topology , instance_numa_topology , free = free ) if ( updated_numa_topology is not None ) : if ( jsonify_result and ( not never_serialize_result ) ) : updated_numa_topology = updated_numa_topology . _to_json ( ) return updated_numa_topology
calculate new host numa usage from an instances numa usage .