code: def get_args(fn):
      """Gets the arguments of a function.
  
      Args:
          fn (callable): The function to inspect.
  
      Returns:
          list: A list of argument names (str) of the function.
      """
      argspec = _inspect_getargspec(fn)
      args = argspec.args
  
      # Empty args can be because `fn` is decorated. Use `funcsigs.signature`
      # to re-do the inspect
      if len(args) == 0:
          args = funcsigs.signature(fn).parameters.keys()
          args = list(args)
  
      return args
  
imports: from typing import List, Union
  import inspect
  import funcsigs
  from pydoc import locate
  import copy
  import collections
  import numpy
  import tensorflow
  from texar.tf.hyperparams import HParams
  from texar.tf.utils.dtypes import is_str, is_callable, compat_as_text, _maybe_list_to_array
label_desc: Use image node_id 3 for calling a global function with example usage: get_args(fn) and returns: args