parameters: (method_info, heading_level=3)
return_statement: return ''.join(parts)
docstring: Generates a markdown section for a method.
  
    Args:
      method_info: A `MethodInfo` object.
      heading_level: An Int, which HTML heading level to use.
  
    Returns:
      A markdown string.
docstring_summary: Generates a markdown section for a method.
docstring_tokens: Generates a markdown section for a method .
function: def _build_method_section(method_info, heading_level=3):
    """Generates a markdown section for a method.
  
    Args:
      method_info: A `MethodInfo` object.
      heading_level: An Int, which HTML heading level to use.
  
    Returns:
      A markdown string.
    """
    parts = []
    heading = ('<h{heading_level} id="{short_name}">'
               '<code>{short_name}</code>'
               '</h{heading_level}>\n\n')
    parts.append(heading.format(heading_level=heading_level,
                                **method_info._asdict()))
  
    if method_info.signature is not None:
      parts.append(_build_signature(method_info, use_full_name=False))
  
    parts.append(method_info.doc.docstring)
    parts.append(_build_function_details(method_info.doc.function_details))
    parts.append(_build_compatibility(method_info.doc.compatibility))
    parts.append('\n\n')
    return ''.join(parts)
function_tokens: def _build_method_section ( method_info , heading_level = 3 ) : parts = [ ] heading = ( '<h{heading_level} id="{short_name}">' '<code>{short_name}</code>' '</h{heading_level}>\n\n' ) parts . append ( heading . format ( heading_level = heading_level , * * method_info . _asdict ( ) ) ) if method_info . signature is not None : parts . append ( _build_signature ( method_info , use_full_name = False ) ) parts . append ( method_info . doc . docstring ) parts . append ( _build_function_details ( method_info . doc . function_details ) ) parts . append ( _build_compatibility ( method_info . doc . compatibility ) ) parts . append ( '\n\n' ) return '' . join ( parts )