def METHOD_NAME(specification, binput, numPin, numType):
    if binput:
        return specification._internal_obj.map_input_pin_spec[numPin].type_names[numType]
    else:
        return specification._internal_obj.map_output_pin_spec[numPin].type_names[numType]