def METHOD_NAME(width, dir, xdr=0):
    """
    Layout of the platform interface of a pin or several pins, which may be used inside
    user-defined records.
    See :class:`Pin` for details.
    """
    fields = []
    for name, member in _pin_signature(width, dir, xdr).members.items():
        fields.append((name, member.shape))
    return Layout(fields)