code: def trunc(scores, method):
      """Round the scores by using the given method
  
      Args:
          scores (numpy.ndarray): scores
          method (str): one of ['ceil', 'floor', 'around']
  
      Raises:
          NotImplementedError: method error
  
      Returns:
          numpy.ndarray: processed scores
      """
  
      try:
          cut_method = getattr(np, method)
      except NotImplementedError:
          raise NotImplementedError(
              "module 'numpy' has no function named '{}'".format(method)
          )
      scores = cut_method(scores)
      return scores
  
imports: import itertools
  import numpy
  import torch
label_desc: Use image node_id 2 for calling a global function with example usage: trunc(scores, method) and returns: scores