code: def get_model_memory_footprint(model):
      r"""
      Partially copied and inspired from: https://discuss.pytorch.org/t/gpu-memory-that-model-uses/56822/2
      """
      return sum(
          [
              param.nelement() * param.element_size()
              for param in model.parameters()
          ]
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_model_memory_footprint(model) and returns: sum