def METHOD_NAME(script, indentation=0):
  """Attempt to return the function body."""
  # Real extraction would require a token parser and state machines.
  # We look for first bracket at the same level of indentation.
  regex_str = r'{(.*?)^[ ]{%d}}' % indentation
  function_regex = re.compile(regex_str, re.MULTILINE | re.DOTALL)
  match = function_regex.search(script)
  if match:
    return match.group(1)