code: def set_attributes(self, params: List[object] = None) -> None:
      """
      An utility function used in classes to set attributes from the input list of parameters.
      Args:
          params (list): list of parameters.
      """
      if params:
          for k, v in params.items():
              if k != "self":
                  setattr(self, k, v)
  
imports: import math
  from typing import List
label_desc: Use image node_id 1 for calling a global function with example usage: set_attributes(params) without return types