code: def params(model, name):
      if "." not in name:
          return getattr(model, name)
  
      prefix, name = name.split(".", 1)
      return params(getattr(model, prefix), name)
  
imports: import functools
  import unittest
  from typing import Any, Dict, Sequence
  import fairseq
  import fairseq.options
  import fairseq.tasks
  import torch
  from tests.utils import dummy_dictionary
label_desc: Use image node_id 5 for calling a global function with example usage: params(model, name) and returns: params, getattr