docs: def get_func(func_ea):
      """get_func(func_t or ea) -> func_t
  
      Take an IDA function (``idaapi.func_t``) or an address (EA) and return
      an IDA function object.
  
      Use this when APIs can take either a function or an address.
  
      Args:
          func_ea: ``idaapi.func_t`` or ea of the function.
  
      Returns:
          An ``idaapi.func_t`` object for the given address. If a ``func_t`` is
          provided, it is returned.
      """
      if isinstance(func_ea, idaapi.func_t):
          return func_ea
      func = idaapi.get_func(func_ea)
      if func is None:
          raise exceptions.SarkNoFunction("No function at 0x{:08X}".format(func_ea))
  
      return func