code: def get_ops_percentage(torch_threshold, nn_fn_threshold):
      data = top_ops.top_torch + top_ops.get_nn_functional_top_list()
  
      def get_num_usages(opname):
          # Ignore this, this is heavily inflated
          if opname == "t":
              return 0
          result = [op[1] for op in data if op[0] == opname]
          assert len(result) == 1
          return result[0]
  
      # get all operators that are not in the denylist
      all_ops = get_top_ops(999999, 999999)
      total_op_usages = sum([get_num_usages(op) for op in all_ops])
  
      # get subset of all operators
      subset_ops = get_top_ops(torch_threshold, nn_fn_threshold)
      subset_op_usages = sum([get_num_usages(op) for op in subset_ops])
      return subset_op_usages / total_op_usages
  
imports: import torch
  import copy
  from torch.testing._internal.common_methods_invocations import op_db
  from functorch_additional_op_db import additional_op_db
  from enum import Enum
  import torch._functorch.top_operators_github_usage
  import pprint
  import unittest
  import enum
  from torch.testing._internal.common_device_type import toleranceOverride
  import test_ops
  import test_vmap
label_desc: Use image node_id 9 for calling a global function with example usage: get_ops_percentage(torch_threshold, nn_fn_threshold) and returns: unknown, result, int