def METHOD_NAME(extension, cmd_component, module_builder=None):
    """
    Args:
        extension:
        cmd_component (pyrevit.extensions.genericcomps.GenericUICommand):
        module_builder:
    Returns:
    """
    # make command interface type for the given command
    try:
        create_exec_types(extension, cmd_component, module_builder)
    except Exception as createtype_err:
        mlogger.error('Error creating appropriate exec types for: %s | %s',
                      cmd_component, createtype_err)
    # create availability types if necessary
    if cmd_component.context:
        try:
            create_avail_type(extension, cmd_component, module_builder)
        except Exception as createtype_err:
            mlogger.error('Error creating appropriate avail types for: %s | %s',
                          cmd_component, createtype_err)